2022-04-12 13:48:22 -07:00
|
|
|
import type { NextPage } from 'next'
|
2022-07-14 16:36:31 -07:00
|
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
2022-09-01 10:33:29 -07:00
|
|
|
import AccountPage from '../components/account/AccountPage'
|
2022-08-10 23:23:18 -07:00
|
|
|
|
2022-07-14 16:36:31 -07:00
|
|
|
export async function getStaticProps({ locale }: { locale: string }) {
|
|
|
|
return {
|
|
|
|
props: {
|
2022-08-24 05:29:20 -07:00
|
|
|
...(await serverSideTranslations(locale, [
|
2023-01-16 20:59:51 -08:00
|
|
|
'account',
|
2023-01-11 19:52:56 -08:00
|
|
|
'activity',
|
2022-08-24 05:29:20 -07:00
|
|
|
'common',
|
2022-11-12 02:26:43 -08:00
|
|
|
'onboarding',
|
2022-10-04 20:35:54 -07:00
|
|
|
'onboarding-tours',
|
2022-11-12 02:26:43 -08:00
|
|
|
'profile',
|
2023-01-10 18:46:18 -08:00
|
|
|
'search',
|
2022-12-16 03:26:42 -08:00
|
|
|
'settings',
|
2022-09-14 18:06:00 -07:00
|
|
|
'swap',
|
2023-01-11 19:52:56 -08:00
|
|
|
'token',
|
2022-10-06 18:57:47 -07:00
|
|
|
'trade',
|
2023-01-12 05:23:16 -08:00
|
|
|
'close-account'
|
2022-08-24 05:29:20 -07:00
|
|
|
])),
|
2022-07-14 16:36:31 -07:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
2022-04-12 13:48:22 -07:00
|
|
|
|
2022-07-14 16:36:31 -07:00
|
|
|
const Index: NextPage = () => {
|
2022-09-13 23:24:26 -07:00
|
|
|
return (
|
2023-01-08 20:58:01 -08:00
|
|
|
<div className="pb-20 md:pb-0">
|
2022-09-13 23:24:26 -07:00
|
|
|
<AccountPage />
|
|
|
|
</div>
|
|
|
|
)
|
2022-04-12 13:48:22 -07:00
|
|
|
}
|
|
|
|
|
2022-05-31 18:41:18 -07:00
|
|
|
export default Index
|