Fix Zustand imports

This commit is contained in:
ajnart
2023-02-11 08:58:09 +09:00
parent 023e44f523
commit 4f652c71ba
5 changed files with 14 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ import {
} from '@mantine/core';
import React from 'react';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import Link from 'next/link';
const useStyles = createStyles((theme) => ({
@@ -93,3 +94,12 @@ export default function Custom404() {
</Container>
);
}
export async function getStaticProps({ locale }: { locale: string }) {
return {
props: {
...(await serverSideTranslations(locale, ['common'])),
// Will be passed to the page component as props
},
};
}