-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17eab72
commit 9e6e567
Showing
3 changed files
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 15 additions & 12 deletions
27
centrifuge-app/src/pages/Portfolio/Transactions/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
import { Box, Stack, Text } from '@centrifuge/fabric' | ||
import * as React from 'react' | ||
import { LayoutBase } from '../../../components/LayoutBase' | ||
import { BasePadding } from '../../../components/LayoutBase/BasePadding' | ||
import { Transactions } from '../../../components/Portfolio/Transactions' | ||
import { useAddress } from '../../../utils/useAddress' | ||
|
||
export function TransactionsPage() { | ||
const address = useAddress() | ||
return ( | ||
<LayoutBase> | ||
<Stack> | ||
<Box as="header"> | ||
<Text as="h1" variant="heading1"> | ||
Transaction history | ||
</Text> | ||
</Box> | ||
<BasePadding> | ||
<Stack> | ||
<Box as="header"> | ||
<Text as="h1" variant="heading1"> | ||
Transaction history | ||
</Text> | ||
</Box> | ||
|
||
{!!address ? ( | ||
<Transactions /> | ||
) : ( | ||
<Text as="strong">You need to connect your wallet to see your transactions</Text> | ||
)} | ||
</Stack> | ||
{!!address ? ( | ||
<Transactions /> | ||
) : ( | ||
<Text as="strong">You need to connect your wallet to see your transactions</Text> | ||
)} | ||
</Stack> | ||
</BasePadding> | ||
</LayoutBase> | ||
) | ||
} |