Yohei-Shiina пре 3 година
родитељ
комит
34d82c1c60
2 измењених фајлова са 2 додато и 5 уклоњено
  1. 1 1
      packages/app/src/components/LoginForm.tsx
  2. 1 4
      packages/app/src/pages/login.page.tsx

+ 1 - 1
packages/app/src/components/LoginForm.tsx

@@ -9,7 +9,7 @@ import ReactCardFlip from 'react-card-flip';
 import { apiv3Post } from '~/client/util/apiv3-client';
 import { useCsrfToken } from '~/stores/context';
 
-export type LoginFormProps = {
+type LoginFormProps = {
   username?: string,
   name?: string,
   email?: string,

+ 1 - 4
packages/app/src/pages/login.page.tsx

@@ -4,10 +4,9 @@ import React from 'react';
 import {
   NextPage, GetServerSideProps, GetServerSidePropsContext,
 } from 'next';
-import dynamic from 'next/dynamic';
 
 import { NoLoginLayout } from '~/components/Layout/NoLoginLayout';
-import { LoginFormProps } from '~/components/LoginForm';
+import { LoginForm } from '~/components/LoginForm';
 import { CrowiRequest } from '~/interfaces/crowi-request';
 
 import {
@@ -20,8 +19,6 @@ import {
   CommonProps, getServerSideCommonProps, useCustomTitle,
 } from './utils/commons';
 
-const LoginForm = dynamic<LoginFormProps>(() => import('~/components/LoginForm').then(mod => mod.LoginForm), { ssr: false });
-
 type Props = CommonProps & {
 
   pageWithMetaStr: string,