-
Notifications
You must be signed in to change notification settings - Fork 0
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
Tien Nam Dao
committed
Oct 12, 2022
1 parent
7cc4256
commit 338bf59
Showing
1 changed file
with
47 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { Breadcumbs } from '@astraprotocol/astra-ui' | ||
import Container from 'components/Container' | ||
import Head from 'next/head' | ||
import React from 'react' | ||
import { LinkMaker } from 'utils/helper' | ||
import Layout from '../../components/Layout' | ||
|
||
type Props = { | ||
token: string | ||
} | ||
|
||
const TokenDetailPage: React.FC<Props> = props => { | ||
const { token } = props | ||
|
||
return ( | ||
<Layout> | ||
<Head> | ||
<meta name="viewport" content="initial-scale=1.0, width=device-width" /> | ||
<title> | ||
Token {token} - {process.env.NEXT_PUBLIC_TITLE} | ||
</title> | ||
</Head> | ||
<Container> | ||
<Breadcumbs items={[{ label: 'Address', link: LinkMaker.token() }, { label: '' }]} /> | ||
</Container> | ||
</Layout> | ||
) | ||
} | ||
|
||
export async function getServerSideProps({ params }) { | ||
const { token } = params | ||
// if (web3.utils.isAddress(address)) | ||
return { | ||
props: { | ||
token | ||
} | ||
} | ||
|
||
// return { | ||
// redirect: { | ||
// destination: '/404', | ||
// permanent: false | ||
// } | ||
// } | ||
} | ||
|
||
export default TokenDetailPage |