Ver código fonte

create login folder and move login.page.tsx under the folder

kaori 3 anos atrás
pai
commit
b102b71de7
1 arquivos alterados com 6 adições e 5 exclusões
  1. 6 5
      packages/app/src/pages/login/index.page.tsx

+ 6 - 5
packages/app/src/pages/login.page.tsx → packages/app/src/pages/login/index.page.tsx

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