Guest User

Untitled

a guest
May 9th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Component } from "react";
  2. import Aos from "aos";
  3. import "aos/dist/aos.css";
  4. import { BrowserRouter, Route, Link, Switch } from "react-router-dom";
  5.  
  6. class NavBar extends Component {
  7.   state = {};
  8.  
  9.   componentDidMount() {
  10.     Aos.init({ duration: 2000 });
  11.   }
  12.  
  13.   render() {
  14.     return (
  15.       <nav>
  16.         <h1 className="logo">
  17.           <i class="fas fa-archive"></i>Loan App
  18.         </h1>
  19.  
  20.         <ul>
  21.           <li>
  22.             <Link to="/">
  23.               <i className="fas fa-home"></i> Dashboard
  24.             </Link>
  25.           </li>
  26.  
  27.           <li>
  28.             <Link to="/create-loan">
  29.               <i className="fas fa-plus-square"></i> Create New Loan
  30.             </Link>
  31.           </li>
  32.  
  33.           <li>
  34.             <Link to="/loan-graph">
  35.               <i className="fas fa-chart-bar"></i> Loan Graph
  36.             </Link>
  37.           </li>
  38.  
  39.           <li>
  40.             <Link to="/settings">
  41.               <i className="fas fa-cogs"></i> Settings
  42.             </Link>
  43.           </li>
  44.  
  45.           <Link to="/help-n-support" className="help">
  46.             <i className="fas fa-question-circle"></i> Help & Support
  47.           </Link>
  48.         </ul>
  49.       </nav>
  50.     );
  51.   }
  52. }
  53.  
  54. export default NavBar;
  55.  
Advertisement
Add Comment
Please, Sign In to add comment