Skip to content

Commit

Permalink
#127 fix: ajusta side-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
DafneM committed Jun 21, 2023
1 parent 4570a31 commit ab9fb6f
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/components/side-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,20 @@ export const SideBar = memo(() => {
</Text>
))}
<Box position="absolute" bottom="20px" fontSize="4xs">
<Text
key={optionUser.name}
fontSize="4xs"
fontWeight="bold"
marginTop="10"
_hover={{ cursor: 'pointer', color: 'orange.500' }}
onClick={() => navigate(optionUser.link)}
>
{optionUser.name}
</Text>
{user?.role === 'admin' ? (
<Text
key={optionUser.name}
fontSize="4xs"
fontWeight="bold"
marginTop="10"
_hover={{ cursor: 'pointer', color: 'orange.500' }}
onClick={() => navigate(optionUser.link)}
>
{optionUser.name}
</Text>
) : (
''
)}
<Text
fontSize="4xs"
fontWeight="bold"
Expand Down

0 comments on commit ab9fb6f

Please sign in to comment.