Skip to content

Commit

Permalink
Merge branch 'landing-page' into router-transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyszkowski authored Apr 22, 2024
2 parents d34c26b + 72f500c commit adde7d5
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dapp/src/pages/ActivityPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function ActivityPage() {

return (
<Flex direction="column" gap={4} p={6}>
<ChakraLink as={ReactRouterLink} to={routerPath.overview}>
<ChakraLink as={ReactRouterLink} to={routerPath.dashboard}>
<Icon
as={ArrowLeft}
boxSize={8}
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import TransactionHistory from "./TransactionHistory"
import { DocsCard } from "./DocsCard"
import { ActivityCarousel } from "./ActivityCarousel"

export default function OverviewPage() {
export default function DashboardPage() {
return (
<Flex direction="column" p={6}>
<HStack pb={3.5}>
Expand Down
9 changes: 8 additions & 1 deletion dapp/src/pages/LandingPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ import { Flex } from "@chakra-ui/react"

export default function LandingPage() {
return (
<Flex w="full" flexFlow="column" px={10}>
<Flex
w="full"
flexFlow="column"
px={10}
pb={10}
maxW="100.625rem"
mx="auto"
>
Content
</Flex>
)
Expand Down
4 changes: 2 additions & 2 deletions dapp/src/router/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from "react"
import { BrowserRouter, Route, Routes } from "react-router-dom"
import LandingPage from "#/pages/LandingPage"
import OverviewPage from "#/pages/OverviewPage"
import ActivityPage from "#/pages/ActivityPage"
import DashboardPage from "#/pages/DashboardPage"
import Layout from "#/components/shared/Layout"
import { routerPath } from "./path"

Expand All @@ -12,7 +12,7 @@ export function Router() {
<Routes>
<Route path="/" element={<Layout />}>
<Route index path={routerPath.home} element={<LandingPage />} />
<Route path={routerPath.overview} element={<OverviewPage />} />
<Route path={routerPath.dashboard} element={<DashboardPage />} />
<Route
path={`${routerPath.activity}/:activityId`}
element={<ActivityPage />}
Expand Down
2 changes: 1 addition & 1 deletion dapp/src/router/path.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const routerPath = {
home: "/",
overview: "/overview",
dashboard: "/dashboard",
activity: "/activity-details",
}

0 comments on commit adde7d5

Please sign in to comment.