fix: Typescript check (#21)

* fix: typescript check error

* fix: typescript check error

* fix: typescript check error

* fix: typescript check error

* fix: typescript check error
This commit is contained in:
Takeshi Kimata
2024-07-28 00:20:24 +09:00
committed by GitHub
parent 44b7c7b9c3
commit c60491db09
60 changed files with 496 additions and 311 deletions

View File

@@ -1,7 +1,9 @@
import { PageType } from '@/types/base';
import AuthPage from '../authPage';
import { useTranslations } from 'next-intl';
import { LocaleCodeType } from '@/types/locale';
export default function Page(params: { locale: string }) {
export default function Page({ params }: PageType) {
const t = useTranslations('Auth');
const messages = {
title: t('signin'),
@@ -24,7 +26,7 @@ export default function Page(params: { locale: string }) {
};
return (
<>
<AuthPage isSignup={false} messages={messages} locale={params.locale} />
<AuthPage isSignup={false} messages={messages} locale={params.locale as LocaleCodeType} />
</>
);
}