diff --git a/ui/src/components/NavBars/LeftBar.tsx b/ui/src/components/NavBars/LeftBar.tsx index e36df1d..2cc55be 100644 --- a/ui/src/components/NavBars/LeftBar.tsx +++ b/ui/src/components/NavBars/LeftBar.tsx @@ -1,6 +1,6 @@ -import { Box, VStack, Text } from '@chakra-ui/react'; +import { Box, VStack } from '@chakra-ui/react'; import { useState } from 'react'; -import { Link } from 'react-router-dom'; +import { NavLink } from 'react-router-dom'; import { useNuiEvent } from '../../hooks/useNuiEvent'; import type { InitData } from '../../types'; @@ -16,11 +16,14 @@ const LeftBar: React.FC = () => { {initData.resources.map((resource, index) => ( - - - {resource} - - + ({ + color: state.isActive ? 'white' : 'grey', + })} + > + {resource} + ))}