feat: implement react router

add landing page on "/"
This commit is contained in:
RadoslavDimchev 2023-08-09 13:37:22 +03:00
parent 3914611970
commit 90d6399d43
1 changed files with 11 additions and 2 deletions

View File

@ -1,14 +1,23 @@
import { TamaguiProvider } from 'tamagui' import { TamaguiProvider } from 'tamagui'
import './App.css' import { createBrowserRouter, RouterProvider } from 'react-router-dom'
import { Provider as StatusProvider } from '@status-im/components' import { Provider as StatusProvider } from '@status-im/components'
import './App.css'
import config from '../tamagui.config' import config from '../tamagui.config'
import LandingPage from './components/LayoutComponent/LandingPage' import LandingPage from './components/LayoutComponent/LandingPage'
const router = createBrowserRouter([
{
path: '/',
element: <LandingPage />,
},
])
function App() { function App() {
return ( return (
<TamaguiProvider config={config}> <TamaguiProvider config={config}>
<StatusProvider> <StatusProvider>
<LandingPage /> <RouterProvider router={router} />
</StatusProvider> </StatusProvider>
</TamaguiProvider> </TamaguiProvider>
) )