Skip to content

Commit

Permalink
fix(mis): delete the excess code of /src/pages/init in mis-web (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
tulvgengenr authored Oct 6, 2022
1 parent 04842cf commit 4d30cce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions apps/mis-web/src/pages/init/createInitAdmin.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Result } from "antd";
import { GetServerSideProps, NextPage } from "next";
import { useRouter } from "next/router";
import { SSRProps } from "src/auth/server";
import { UnifiedErrorPage } from "src/components/errorPages/UnifiedErrorPage";
import { InitAdminForm } from "src/pageComponents/init/InitAdminForm";
Expand All @@ -27,7 +26,7 @@ export const CreateInitAdminPage: NextPage<Props> = (props) => {
}
return (
<div>
<InitDrawer url={useRouter().asPath}>
<InitDrawer>
<InitAdminForm/>
</InitDrawer>
</div>
Expand Down
3 changes: 1 addition & 2 deletions apps/mis-web/src/pages/init/importUsers.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Result } from "antd";
import { GetServerSideProps, NextPage } from "next";
import { useRouter } from "next/router";
import { SSRProps } from "src/auth/server";
import { UnifiedErrorPage } from "src/components/errorPages/UnifiedErrorPage";
import { InitImportUsersForm } from "src/pageComponents/init/InitImportUsersForm";
Expand All @@ -27,7 +26,7 @@ export const ImportUsersPage: NextPage<Props> = (props) => {
}
return (
<div>
<InitDrawer url={useRouter().asPath}>
<InitDrawer>
<InitImportUsersForm/>
</InitDrawer>
</div>
Expand Down
3 changes: 1 addition & 2 deletions apps/mis-web/src/pages/init/jobPriceTable.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Result } from "antd";
import { GetServerSideProps, NextPage } from "next";
import { useRouter } from "next/router";
import { SSRProps } from "src/auth/server";
import { UnifiedErrorPage } from "src/components/errorPages/UnifiedErrorPage";
import { EditJobPriceTableForm } from "src/pageComponents/init/EditJobPriceTableForm";
Expand All @@ -27,7 +26,7 @@ export const JobPriceTablePage: NextPage<Props> = (props) => {
}
return (
<div>
<InitDrawer url={useRouter().asPath}>
<InitDrawer>
<EditJobPriceTableForm/>
</InitDrawer>
</div>
Expand Down
3 changes: 1 addition & 2 deletions apps/mis-web/src/pages/init/users.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Result } from "antd";
import { GetServerSideProps, NextPage } from "next";
import { useRouter } from "next/router";
import { SSRProps } from "src/auth/server";
import { UnifiedErrorPage } from "src/components/errorPages/UnifiedErrorPage";
import { InitDrawer } from "src/pageComponents/init/InitLayout";
Expand All @@ -27,7 +26,7 @@ export const UsersPage: NextPage<Props> = (props) => {
}
return (
<div>
<InitDrawer url={useRouter().asPath}>
<InitDrawer>
<InitUsersAndAccountsTable/>
</InitDrawer>
</div>
Expand Down

0 comments on commit 4d30cce

Please sign in to comment.