From e9721ca5ca1fdda58fdfd8cdb198721c7d168434 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 22 Jan 2022 14:07:09 +0100 Subject: [PATCH] refactor(nui): Improve resource text handling --- ui/src/components/NavBars/LeftBar.tsx | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/ui/src/components/NavBars/LeftBar.tsx b/ui/src/components/NavBars/LeftBar.tsx index de7d3d7..e36df1d 100644 --- a/ui/src/components/NavBars/LeftBar.tsx +++ b/ui/src/components/NavBars/LeftBar.tsx @@ -1,4 +1,4 @@ -import { Box, VStack } from '@chakra-ui/react'; +import { Box, VStack, Text } from '@chakra-ui/react'; import { useState } from 'react'; import { Link } from 'react-router-dom'; import { useNuiEvent } from '../../hooks/useNuiEvent'; @@ -15,17 +15,13 @@ const LeftBar: React.FC = () => { {initData.resources.map((resource, index) => ( - - - {resource} - - + + + + {resource} + + + ))}