Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert prettier changes
  • Loading branch information
vcolmenar committed Feb 12, 2023
commit 80de4aebfc353d67d96769e67def1c0ec8f49b9d
48 changes: 20 additions & 28 deletions src/components/sidebar/components/Links.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@ export function SidebarLinks(props) {
<Text
fontSize={"md"}
color={activeColor}
fontWeight="bold"
mx="auto"
fontWeight='bold'
mx='auto'
ps={{
sm: "10px",
xl: "16px",
}}
pt="18px"
pb="12px"
key={index}
>
pt='18px'
pb='12px'
key={index}>
{route.name}
</Text>
{createLinks(route.items)}
Expand All @@ -61,22 +60,20 @@ export function SidebarLinks(props) {
spacing={
activeRoute(route.path.toLowerCase()) ? "22px" : "26px"
}
py="5px"
ps="10px"
>
<Flex w="100%" alignItems="center" justifyContent="center">
py='5px'
ps='10px'>
<Flex w='100%' alignItems='center' justifyContent='center'>
<Box
color={
activeRoute(route.path.toLowerCase())
? activeIcon
: textColor
}
me="18px"
>
me='18px'>
{route.icon}
</Box>
<Text
me="auto"
me='auto'
color={
activeRoute(route.path.toLowerCase())
? activeColor
Expand All @@ -86,20 +83,19 @@ export function SidebarLinks(props) {
activeRoute(route.path.toLowerCase())
? "bold"
: "normal"
}
>
}>
{route.name}
</Text>
</Flex>
<Box
h="36px"
w="4px"
h='36px'
w='4px'
bg={
activeRoute(route.path.toLowerCase())
? brandColor
: "transparent"
}
borderRadius="5px"
borderRadius='5px'
/>
</HStack>
</Box>
Expand All @@ -109,25 +105,21 @@ export function SidebarLinks(props) {
spacing={
activeRoute(route.path.toLowerCase()) ? "22px" : "26px"
}
py="5px"
ps="10px"
>
py='5px'
ps='10px'>
<Text
me="auto"
me='auto'
color={
activeRoute(route.path.toLowerCase())
? activeColor
: inactiveColor
}
fontWeight={
activeRoute(route.path.toLowerCase())
? "bold"
: "normal"
}
>
activeRoute(route.path.toLowerCase()) ? "bold" : "normal"
}>
{route.name}
</Text>
<Box h="36px" w="4px" bg="brand.400" borderRadius="5px" />
<Box h='36px' w='4px' bg='brand.400' borderRadius='5px' />
</HStack>
</Box>
)}
Expand Down