File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
- import type { GetStaticProps } from "next/types"
1
+ import type { GetStaticProps , InferGetStaticPropsType } from "next/types"
2
2
import { type SSRConfig , useTranslation } from "next-i18next"
3
3
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
4
4
import type { ComponentPropsWithRef } from "react"
@@ -99,6 +99,11 @@ const RightColumn = (props: ChildOnlyProp) => (
99
99
/>
100
100
)
101
101
102
+ type Props = SSRConfig & {
103
+ lastDeployDate : string
104
+ lastDataUpdateDate : string
105
+ }
106
+
102
107
export const getStaticProps = ( async ( context ) => {
103
108
const { locale } = context
104
109
// load i18n required namespaces for the given page
@@ -115,9 +120,11 @@ export const getStaticProps = (async (context) => {
115
120
lastDataUpdateDate,
116
121
} ,
117
122
}
118
- } ) satisfies GetStaticProps < SSRConfig >
123
+ } ) satisfies GetStaticProps < Props >
119
124
120
- const GetEthPage = ( { lastDataUpdateDate } ) => {
125
+ const GetEthPage = ( {
126
+ lastDataUpdateDate,
127
+ } : InferGetStaticPropsType < typeof getStaticProps > ) => {
121
128
const { t } = useTranslation ( "page-get-eth" )
122
129
123
130
const tokenSwaps : CardListItem [ ] = [
You can’t perform that action at this time.
0 commit comments