|
@@ -11,15 +11,14 @@ import { LoginForm } from '~/components/LoginForm';
|
|
|
import type { CrowiRequest } from '~/interfaces/crowi-request';
|
|
import type { CrowiRequest } from '~/interfaces/crowi-request';
|
|
|
import { IExternalAccountLoginError, isExternalAccountLoginError } from '~/interfaces/errors/external-account-login-error';
|
|
import { IExternalAccountLoginError, isExternalAccountLoginError } from '~/interfaces/errors/external-account-login-error';
|
|
|
import type { RegistrationMode } from '~/interfaces/registration-mode';
|
|
import type { RegistrationMode } from '~/interfaces/registration-mode';
|
|
|
-
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ CommonProps, getServerSideCommonProps, generateCustomTitle, getNextI18NextConfig,
|
|
|
|
|
+} from '~/pages/utils/commons';
|
|
|
import {
|
|
import {
|
|
|
useCsrfToken,
|
|
useCsrfToken,
|
|
|
useCurrentPathname,
|
|
useCurrentPathname,
|
|
|
-} from '../stores/context';
|
|
|
|
|
|
|
+} from '~/stores/context';
|
|
|
|
|
|
|
|
-import {
|
|
|
|
|
- CommonProps, getServerSideCommonProps, generateCustomTitle, getNextI18NextConfig,
|
|
|
|
|
-} from './utils/commons';
|
|
|
|
|
|
|
|
|
|
type Props = CommonProps & {
|
|
type Props = CommonProps & {
|
|
|
registrationMode: RegistrationMode,
|
|
registrationMode: RegistrationMode,
|
|
@@ -46,6 +45,8 @@ const LoginPage: NextPage<Props> = (props: Props) => {
|
|
|
const title = generateCustomTitle(props, 'GROWI');
|
|
const title = generateCustomTitle(props, 'GROWI');
|
|
|
const classNames: string[] = ['login-page'];
|
|
const classNames: string[] = ['login-page'];
|
|
|
|
|
|
|
|
|
|
+ console.log({ props });
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<NoLoginLayout className={classNames.join(' ')}>
|
|
<NoLoginLayout className={classNames.join(' ')}>
|
|
|
<Head>
|
|
<Head>
|