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',
|
2023-10-17 04:28:43 -07:00
|
|
|
'explore',
|
|
|
|
'governance',
|
2023-04-21 07:23:27 -07:00
|
|
|
'notifications',
|
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-07-03 20:24:13 -07:00
|
|
|
'stats',
|
2023-01-11 19:52:56 -08:00
|
|
|
'token',
|
2022-10-06 18:57:47 -07:00
|
|
|
'trade',
|
2023-01-26 01:56:32 -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-08-08 22:37:08 -07:00
|
|
|
<div className="min-h-[calc(100vh-64px)] pb-32 md:pb-20 lg:pb-[27px]">
|
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
|