Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. this.state = {
  2.       isOpen: false,
  3.       linkRefActiveColor: "#000",
  4.       linkRefNotActiveColor: "#fff"
  5.     };
  6.  
  7. <NavItem>
  8.                 <NavLink href="#" onClick={this.activeLink}>
  9.                   <FaHome
  10.                     style={{
  11.                       color: this.state.linkRefActive
  12.                         ? this.state.linkRefActiveColor
  13.                         : this.state.linkRefNotActiveColor
  14.                     }}
  15.                   />
  16.                 </NavLink>
  17.               </NavItem>
  18.               <NavItem>
  19.                 <NavLink href="#" onClick={this.activeLink}>
  20.                   <FaNetworkWired
  21.                     style={{
  22.                       color: this.state.linkRefActive
  23.                         ? this.state.linkRefActiveColor
  24.                         : this.state.linkRefNotActiveColor
  25.                     }}
  26.                   />
  27.                 </NavLink>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement