From fbb7b3144c7d35c9b647a3709c1cc32e0feeff25 Mon Sep 17 00:00:00 2001 From: Vadzim Mahilny Date: Fri, 25 Aug 2023 11:10:09 +0100 Subject: [PATCH 01/20] Sidebar buttons --- src/renderer/components/Sidebar.tsx | 30 +++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/src/renderer/components/Sidebar.tsx b/src/renderer/components/Sidebar.tsx index 9b41c89..424863c 100644 --- a/src/renderer/components/Sidebar.tsx +++ b/src/renderer/components/Sidebar.tsx @@ -1,10 +1,12 @@ -import { Box, Button, Sidebar as GrommetSidebar, Image, Nav } from 'grommet'; +import { Box, Button, Sidebar as GrommetSidebar, Image, Nav, Text } from 'grommet'; import { Home, Money, Tools } from 'grommet-icons'; -import { useNavigate } from 'react-router-dom'; +import { useNavigate, useLocation } from 'react-router-dom'; import logo from './logo.png'; function Sidebar() { const navigate = useNavigate(); + const location = useLocation(); + const { pathname } = location; return (