2023-08-07 11:24:37 +03:00
|
|
|
import { TamaguiProvider } from 'tamagui'
|
2023-08-09 13:37:22 +03:00
|
|
|
import { createBrowserRouter, RouterProvider } from 'react-router-dom'
|
2023-08-07 11:24:37 +03:00
|
|
|
import { Provider as StatusProvider } from '@status-im/components'
|
2023-08-09 13:37:22 +03:00
|
|
|
import './App.css'
|
2023-08-04 09:43:07 +03:00
|
|
|
import config from '../tamagui.config'
|
2023-08-15 10:21:21 +03:00
|
|
|
import LandingPage from './pages/LandingPage/LandingPage'
|
2023-08-11 13:04:02 +03:00
|
|
|
import DeviceHealthCheck from './pages/DeviceHealthCheck/DeviceHealthCheck'
|
2023-08-15 10:22:36 +03:00
|
|
|
import ConnectDevicePage from './pages/ConnectDevicePage/ConnectDevicePage'
|
2023-08-15 13:27:18 +03:00
|
|
|
import DeviceSyncStatus from './pages/DeviceSyncStatus/DeviceSyncStatus'
|
2023-08-16 10:48:27 +03:00
|
|
|
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'
|
2023-08-16 14:32:53 +03:00
|
|
|
import CreateLocalNodePage from './pages/CreateLocalNodePage/CreateLocalNodePage'
|
2023-08-07 11:24:37 +03:00
|
|
|
|
2023-08-09 13:37:22 +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
|
|
|
{
|
2023-08-15 10:05:39 +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',
|
2023-08-16 10:48:27 +03:00
|
|
|
element: <PairDevice />,
|
2023-08-16 10:44:33 +03:00
|
|
|
},
|
2023-08-18 15:39:38 +03:00
|
|
|
{ path: '/create-local-node', element: <CreateLocalNodePage /> },
|
2023-08-09 13:37:22 +03:00
|
|
|
])
|
2023-08-03 22:26:40 +03:00
|
|
|
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>
|
2023-08-18 14:58:26 +03:00
|
|
|
<PinnedNotification />
|
2023-08-17 12:01:11 +03:00
|
|
|
<RouterProvider router={router} />
|
|
|
|
</StatusProvider>
|
2023-08-17 13:06:27 +03:00
|
|
|
</TamaguiProvider>
|
|
|
|
</ReduxProvider>
|
2023-08-03 09:20:54 +03:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App
|