From 780b42367858a4681ab689fe2fac1f6c46dbea70 Mon Sep 17 00:00:00 2001 From: mehditorabiv Date: Tue, 3 Dec 2024 13:30:50 +0300 Subject: [PATCH] update --- src/App.tsx | 61 ++++++++++++--------------- src/components/layouts/SidebarApp.tsx | 52 ++++++++++++++++++++--- src/main.tsx | 8 +++- 3 files changed, 82 insertions(+), 39 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 9991819..d7d99d9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,8 +3,6 @@ import '@rainbow-me/rainbowkit/styles.css'; import React from 'react'; import { useMediaQuery } from '@mui/material'; -import CssBaseline from '@mui/material/CssBaseline'; -import { ThemeProvider } from '@mui/material/styles'; import { lightTheme, RainbowKitAuthenticationProvider, @@ -64,39 +62,36 @@ const App: React.FC = () => { appName: 'LogID', }} > - - - + + + ) : ( + + ) + } + /> + + + + } + > + } /> + } /> - ) : ( - - ) - } + path="identifiers/:provider/attestation" + element={} /> - - - - } - > - } /> - } /> - } - /> - } /> - - } /> - Not found} /> - - - + } /> + + } /> + Not found} /> + + diff --git a/src/components/layouts/SidebarApp.tsx b/src/components/layouts/SidebarApp.tsx index 9845e39..6ba06ea 100644 --- a/src/components/layouts/SidebarApp.tsx +++ b/src/components/layouts/SidebarApp.tsx @@ -12,6 +12,7 @@ import { import { useLocation, useNavigate } from 'react-router-dom'; import { DRAWER_WIDTH, SIDEBAR_MENU } from '../../libs/constants'; +import theme from '../../libs/theme'; function SidebarApp() { const navigate = useNavigate(); @@ -46,18 +47,59 @@ function SidebarApp() { - + + {' '} {SIDEBAR_MENU.map((item) => ( navigate(item.path)} > - + - {item.title} + ))} diff --git a/src/main.tsx b/src/main.tsx index 29457a3..5fdecdb 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,6 +1,8 @@ import './index.css'; import React from 'react'; +import { ThemeProvider } from '@emotion/react'; +import { CssBaseline } from '@mui/material'; import { getDefaultConfig } from '@rainbow-me/rainbowkit'; import ReactDOM from 'react-dom/client'; import { BrowserRouter } from 'react-router-dom'; @@ -8,6 +10,7 @@ import { baseSepolia, optimismSepolia } from 'viem/chains'; import { http, WagmiProvider } from 'wagmi'; import App from './App'; +import theme from './libs/theme'; if (!import.meta.env.VITE_PROJECT_ID) { throw new Error('VITE_PROJECT_ID environment variable is required'); @@ -31,7 +34,10 @@ ReactDOM.createRoot(document.getElementById('root')!).render( - + + + +