File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed
Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1+ import { createBrowserRouter , RouterProvider } from 'react-router-dom' ;
2+
3+ const testRouter = createBrowserRouter ( [
4+ {
5+ path : '/' ,
6+ element : (
7+ < div style = { {
8+ padding : '20px' ,
9+ backgroundColor : 'white' ,
10+ color : 'black' ,
11+ minHeight : '100vh'
12+ } } >
13+ < h1 > Test Router Working!</ h1 >
14+ < p > If you can see this, the router is working correctly.</ p >
15+ </ div >
16+ ) ,
17+ } ,
18+ ] , {
19+ basename : '/web3messaging' ,
20+ } ) ;
21+
22+ export function TestRouter ( ) {
23+ console . log ( 'TestRouter: Rendering test router' ) ;
24+ return < RouterProvider router = { testRouter } /> ;
25+ }
Original file line number Diff line number Diff line change @@ -4,14 +4,15 @@ import '@fontsource/inter/latin-400.css';
44import { QueryClientProvider } from '@tanstack/react-query' ;
55import React from 'react' ;
66import ReactDOM from 'react-dom/client' ;
7- import { RouterProvider } from 'react-router-dom' ;
7+
88import { WagmiProvider } from 'wagmi' ;
99import { initQueryClient } from '@/utils/initQueryClient.ts' ;
1010import { initRollbarAlerting } from '@/utils/initRollbarAlerting.ts' ;
1111import './index.css' ;
1212import { router } from './router.tsx' ;
1313import { wagmiAdapter } from './utils/wagmiConfig.ts' ;
1414import { ErrorBoundary } from './components/ErrorBoundary.tsx' ;
15+ import { TestRouter } from './components/TestRouter.tsx' ;
1516
1617console . log ( 'Starting app initialization...' ) ;
1718
3839 < ErrorBoundary >
3940 < WagmiProvider config = { wagmiAdapter . wagmiConfig } >
4041 < QueryClientProvider client = { queryClient } >
41- < RouterProvider router = { router } />
42+ < TestRouter />
4243 </ QueryClientProvider >
4344 </ WagmiProvider >
4445 </ ErrorBoundary >
You can’t perform that action at this time.
0 commit comments