Delightful UI updates
This commit is contained in:
parent
76cbd10a6f
commit
3bcc854ba1
19 changed files with 576 additions and 88 deletions
17
frontend/src/global/components/Nav/NavbarItem.jsx
Normal file
17
frontend/src/global/components/Nav/NavbarItem.jsx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import React from 'react';
|
||||
import { NavLink } from 'react-router-dom';
|
||||
|
||||
export default ({
|
||||
to, name, icon,
|
||||
}) => (
|
||||
<NavLink
|
||||
exact
|
||||
to={to}
|
||||
className={({ isActive }) => `chakra-button ${isActive ? 'nav-active' : 'nav-inactive'}`}
|
||||
>
|
||||
{icon && icon}
|
||||
{!!icon && !!name && (<div style={{ width: '8px' }} />)}
|
||||
{!!name && name}
|
||||
</NavLink>
|
||||
|
||||
);
|
||||
Loading…
Reference in a new issue