nimbus-gui/src/App.tsx

56 lines
1.6 KiB
TypeScript
Raw Normal View History

import { TamaguiProvider, Theme } 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'
import PairDevice from './pages/PairDevice/PairDevice'
2023-08-17 12:01:11 +03:00
import { Provider as ReduxProvider } from 'react-redux'
2023-08-18 14:58:26 +03:00
import PinnedNotification from './components/General/PinnedNottification'
2023-08-17 12:01:11 +03:00
import store from './redux/store'
import CreateLocalNodePage from './pages/CreateLocalNodePage/CreateLocalNodePage'
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-16 09:12:32 +03:00
},
{
2023-08-15 09:52:16 +03:00
path: '/device-sync-status',
element: <DeviceSyncStatus />,
2023-08-16 10:44:33 +03:00
},
{
path: '/pair-device',
element: <PairDevice />,
2023-08-16 10:44:33 +03:00
},
{ path: '/create-local-node', element: <CreateLocalNodePage /> },
])
function App() {
2023-08-03 09:20:54 +03:00
return (
2023-08-17 13:06:27 +03:00
<ReduxProvider store={store}>
<TamaguiProvider config={config}>
2023-08-17 12:01:11 +03:00
<StatusProvider>
<Theme name={'light'}>
<PinnedNotification />
<RouterProvider router={router} />
</Theme>
2023-08-17 12:01:11 +03:00
</StatusProvider>
2023-08-17 13:06:27 +03:00
</TamaguiProvider>
</ReduxProvider>
2023-08-03 09:20:54 +03:00
)
}
export default App