Update navbar component

This commit is contained in:
Hazem Krimi
2021-05-12 01:40:47 +01:00
parent 2ad4aba796
commit aca15584d4
2 changed files with 55 additions and 1 deletions
+54
View File
@@ -44,6 +44,60 @@ const Navbar = () => {
</Link> </Link>
</> </>
)} )}
{role === 'developer' && (
<>
<Link
href='/project'
color={location.pathname === '/project' ? 'developer' : 'black'}
selected={location.pathname === '/project'}
>
Projects
</Link>
<Link
href='/template'
color={location.pathname === '/template' ? 'developer' : 'black'}
selected={location.pathname === '/template'}
>
Templates
</Link>
<Link
href='/feature'
color={location.pathname === '/feature' ? 'developer' : 'black'}
selected={location.pathname === '/feature'}
>
Features
</Link>
<Link
href='/category'
color={location.pathname === '/category' ? 'developer' : 'black'}
selected={location.pathname === '/category'}
>
Categories
</Link>
</>
)}
{role === 'productOwner' && (
<>
<Link
href='/project'
color={
location.pathname === '/project' ? 'productOwner' : 'black'
}
selected={location.pathname === '/project'}
>
Projects
</Link>
<Link
href='/template'
color={
location.pathname === '/template' ? 'productOwner' : 'black'
}
selected={location.pathname === '/template'}
>
Templates
</Link>
</>
)}
</nav> </nav>
<div className='menu'></div> <div className='menu'></div>
<div className='user' id='user'> <div className='user' id='user'>
+1 -1
View File
@@ -30,7 +30,7 @@ export const Wrapper = styled.div<WrapperProps>`
flex-grow: 1; flex-grow: 1;
margin-left: 60px; margin-left: 60px;
display: grid; display: grid;
grid-template-columns: repeat(3, auto); grid-template-columns: repeat(4, auto);
column-gap: 20px; column-gap: 20px;
justify-content: flex-start; justify-content: flex-start;
} }