nimbus-gui/src/App.tsx

39 lines
1.0 KiB
TypeScript
Raw Normal View History

2023-08-07 11:24:37 +03:00
import { TamaguiProvider } from 'tamagui'
import { createBrowserRouter, RouterProvider } from 'react-router-dom'
2023-08-07 11:24:37 +03:00
import { Provider as StatusProvider } from '@status-im/components'
import './App.css'
import config from '../tamagui.config'
import LandingPage from './pages/LandingPage/LandingPage'
2023-08-11 13:04:02 +03:00
import DeviceHealthCheck from './pages/DeviceHealthCheck/DeviceHealthCheck'
import ConnectDevicePage from './pages/ConnectDevicePage/ConnectDevicePage'
2023-08-15 13:27:18 +03:00
import DeviceSyncStatus from './pages/DeviceSyncStatus/DeviceSyncStatus'
2023-08-07 11:24:37 +03:00
const router = createBrowserRouter([
{
path: '/',
element: <LandingPage />,
},
2023-08-11 13:04:02 +03:00
{
path: '/device-health-check',
element: <DeviceHealthCheck />,
},
2023-08-15 09:43:36 +03:00
{
path: '/connect-device',
element: <ConnectDevicePage />,
2023-08-15 09:52:16 +03:00
path: '/device-sync-status',
element: <DeviceSyncStatus />,
2023-08-15 09:43:36 +03:00
},
])
function App() {
2023-08-03 09:20:54 +03:00
return (
<TamaguiProvider config={config}>
2023-08-07 11:24:37 +03:00
<StatusProvider>
<RouterProvider router={router} />
</StatusProvider>
</TamaguiProvider>
2023-08-03 09:20:54 +03:00
)
}
export default App