Skip to content

Commit

Permalink
Revert OverviewPage changes`
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyszkowski committed May 8, 2024
1 parent d1a145a commit a4e4bd8
Showing 1 changed file with 2 additions and 39 deletions.
41 changes: 2 additions & 39 deletions dapp/src/pages/OverviewPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { Card, Flex, Grid, HStack, Switch } from "@chakra-ui/react"
import { Flex, Grid, HStack, Switch } from "@chakra-ui/react"
import { TextSm } from "#/components/shared/Typography"
import { USD } from "#/constants"
import { chakraUnitToPx } from "#/theme/utils"
Expand All @@ -9,44 +9,7 @@ import TransactionHistory from "./TransactionHistory"
import { DocsCard } from "./DocsCard"
import { ActivityCarousel } from "./ActivityCarousel"

const MOCK_TRANSACTION_HISTORY_DATA = [
{
date: "2 mins ago",
type: "Deposit",
amount: 499000000,
address: "1Lbcfr7sA.....8LK4ZnX71",
url: "#1",
},
{
date: "3 hours ago",
type: "Withdraw",
amount: 499000000,
address: "1Lbcfr7sA.....8LK4ZnX71",
url: "#2",
},
Array(16)
.fill({
date: "23/11/2023, 12:01",
type: "Deposit",
amount: 499000000,
address: "1Lbcfr7sA.....8LK4ZnX71",
})
.map((x, i) => ({ ...x, url: `#${i + 3}` })),
].flat()

export default function OverviewPage() {
return (
<Flex direction="column" p={6} gap={8}>
<Card overflow="hidden" p={5} w="full" maxW={748} mx="auto">
<TransactionHistory data={MOCK_TRANSACTION_HISTORY_DATA} />
</Card>

<Card overflow="hidden" p={5} w="full" maxW={748} mx="auto">
<TransactionHistory />
</Card>
</Flex>
)

return (
<Flex direction="column" p={6}>
<HStack pb={3.5}>
Expand All @@ -72,7 +35,7 @@ export default function OverviewPage() {
>
<PositionDetails gridArea="position-details" />
<Statistics gridArea="statistics" />
{/* <TransactionHistory gridArea="transaction-history" /> */}
<TransactionHistory gridArea="transaction-history" />
</Grid>
</Flex>
)
Expand Down

0 comments on commit a4e4bd8

Please sign in to comment.