diff --git a/pages/index.tsx b/pages/index.tsx index 1dc9b8f..eb10244 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,15 +1,8 @@ -import Head from 'next/head'; -import Image from 'next/image'; -import { wrapper } from '@/src/store'; -import serverApi, { useGetAllUsersQuery } from '../src/services/serverApi'; -// import NewMembersCard from "@/src/components/NewMember"; -import { NEW_USER, NUM_MEMBERS_NUMBER } from '@/src/constants/AppConstants'; -import styles from '@/styles/Home.module.css'; import MembersSectionMain from '@/src/components/MembersSectionNew/MembersSectionMain'; import NewMemberSection from '@/src/components/NewMemberSection'; +import { NEW_USER } from '@/src/constants/AppConstants'; +import styles from '@/styles/Home.module.css'; import { UserType } from '../src/components/MembersSectionNew/types/MembersSection.type'; -import { MaintenancePage } from '@/src/components/MaintenancePage/MaintenancePage'; -import { useRouter } from 'next/router'; type PictureType = { publicId: string; url: string; @@ -34,25 +27,16 @@ type PropsType = { }; export default function Home() { - const { query } = useRouter() - - if (query.dev === "true") { - return ( -
-
-

Real Dev Squad Members

- -
-
-

{NEW_USER}

- -
-
- ); - } - - // TODO: Remove this once the /users api has support for `role` query param return ( - - ) +
+
+

Real Dev Squad Members

+ +
+
+

{NEW_USER}

+ +
+
+ ); } diff --git a/src/components/MaintenancePage/MaintenancePage.module.css b/src/components/MaintenancePage/MaintenancePage.module.css deleted file mode 100644 index ecc9d37..0000000 --- a/src/components/MaintenancePage/MaintenancePage.module.css +++ /dev/null @@ -1,14 +0,0 @@ -.maintenancePageContainer { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - width: 100%; - height: calc(100vh - 150px); -} - -.maintenancePageContainer>h1 { - font-size: 1.5rem; - padding-bottom: 0.5rem; - font-weight: 700; -} \ No newline at end of file diff --git a/src/components/MaintenancePage/MaintenancePage.tsx b/src/components/MaintenancePage/MaintenancePage.tsx deleted file mode 100644 index 2bd7ed3..0000000 --- a/src/components/MaintenancePage/MaintenancePage.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import styles from "./MaintenancePage.module.css" - -export const MaintenancePage = () => { - return ( -
-

Page is under maintenance

-

We apologize for the inconvenience. Our page is currently undergoing maintenance.

-

Please check back later. Thank you for your patience.

-
- ) -} \ No newline at end of file