Skip to content

Commit

Permalink
Static paths and props for stake dynamic page
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha committed Nov 9, 2023
1 parent 8e4ecdc commit a784c91
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/synapse-interface/pages/stake/[routerIndex].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ import Link from 'next/link'
import { POOL_PATH } from '@/constants/urls'
import { ChevronLeftIcon } from '@heroicons/react/outline'

export async function getStaticPaths() {
const paths = Object.keys(POOL_BY_ROUTER_INDEX).map((routerIndex) => ({
params: { routerIndex },
}))

return { paths, fallback: false }
}

export const getStaticProps = async (context) => {
return { props: {} }
}

const SingleStakePage = () => {
const router = useRouter()
const { routerIndex } = router.query
Expand Down

0 comments on commit a784c91

Please sign in to comment.