Skip to content

Commit

Permalink
feat: init page token
Browse files Browse the repository at this point in the history
  • 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.
47 changes: 47 additions & 0 deletions pages/token/[token].tsx
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

0 comments on commit 338bf59

Please sign in to comment.