mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Update navbar component
This commit is contained in:
@@ -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'>
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user