mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-10 03:25:41 +00:00
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import { TamaguiProvider } from 'tamagui'
|
|
import { createBrowserRouter, RouterProvider } from 'react-router-dom'
|
|
import { Provider as StatusProvider } from '@status-im/components'
|
|
import './App.css'
|
|
import config from '../tamagui.config'
|
|
import LandingPage from './pages/LandingPage/LandingPage'
|
|
import DeviceHealthCheck from './pages/DeviceHealthCheck/DeviceHealthCheck'
|
|
import ConnectDevicePage from './pages/ConnectDevicePage/ConnectDevicePage'
|
|
import DeviceSyncStatus from './pages/DeviceSyncStatus/DeviceSyncStatus'
|
|
import CreateLocalNodePage from './pages/CreateLocalNodePage/CreateLocalNodePage'
|
|
|
|
const router = createBrowserRouter([
|
|
{
|
|
path: '/',
|
|
element: <LandingPage />,
|
|
},
|
|
{
|
|
path: '/device-health-check',
|
|
element: <DeviceHealthCheck />,
|
|
},
|
|
{
|
|
path: '/connect-device',
|
|
element: <ConnectDevicePage />,
|
|
},
|
|
{
|
|
path: '/device-sync-status',
|
|
element: <DeviceSyncStatus />,
|
|
},
|
|
{
|
|
path: '/create-local-node',
|
|
element: <CreateLocalNodePage />,
|
|
},
|
|
])
|
|
|
|
function App() {
|
|
return (
|
|
<TamaguiProvider config={config}>
|
|
<StatusProvider>
|
|
<RouterProvider router={router} />
|
|
</StatusProvider>
|
|
</TamaguiProvider>
|
|
)
|
|
}
|
|
|
|
export default App
|