Skip to content

Commit

Permalink
Apply changes in router
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyszkowski committed Apr 16, 2024
1 parent 0db46c1 commit b09220e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dapp/src/router/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import React from "react"
import { createBrowserRouter } from "react-router-dom"
import OverviewPage from "#/pages/OverviewPage"
import LandingPage from "#/pages/LandingPage"
import ActivityPage from "#/pages/ActivityPage"
import { routerPath } from "./path"

export const router = createBrowserRouter([
{
path: routerPath.home,
element: <OverviewPage />,
element: <LandingPage />,
index: true,
},
{
path: `${routerPath.activity}/:activityId`,
element: <ActivityPage />,
},
// {
// path: `${routerPath.activity}/:activityId`,
// element: <ActivityPage />,
// },
])

0 comments on commit b09220e

Please sign in to comment.