SHARE
TWEET

Untitled

a guest Feb 27th, 2020 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from "react";
  2. import { Link, BrowserRouter as Router, Route } from "react-router-dom";
  3.  
  4. const items = [
  5.   { name: "Logo", label: "Logo", path: "/" },
  6.   {
  7.     name: "roiCalculator",
  8.     label: "ROI Calculator",
  9.     path: "/",
  10.     items: [
  11.       { name: "dashboard", label: "Dashboard" },
  12.       { name: "hiddenTransaction", label: "Hidden Transaction Fees" },
  13.       { name: "internalProductivity", label: "Internal Productivity and Labor Savings" },
  14.       { name: "internationalRevenue", label: "International Revenue" },
  15.       { name: "summary", label: "Summary" }
  16.     ]
  17.   },
  18.   { name: "", label: "", path: "/" },
  19.   { name: "", label: "", path: "/" },
  20.   { name: "mr", label: "MR", path: "/" },
  21.   { name: "ex", label: "EX", path: "/ex", exact: true, sidebar: () => <div>home</div> },
  22.   { name: "cx", label: "CX" },
  23.   {}
  24. ];
  25.  
  26. export default () => {
  27.   return (
  28.     <>
  29.       <div className="sidebar">
  30.         {items.map(item => {
  31.           <ul style={{ listStyleType: "none", padding: 0 }}>
  32.             <li>
  33.               <Link to={item.path}>{item.name}</Link>
  34.             </li>
  35.           </ul>;
  36.         })}
  37.       </div>
  38.     </>
  39.   );
  40. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top