Skip to content

Commit

Permalink
Merge pull request #156 from Real-Dev-Squad/yash/maintenance-removal
Browse files Browse the repository at this point in the history
remove feature flag from homepage and delete maintenance page
  • Loading branch information
iamitprakash authored Aug 17, 2024
2 parents 3c1a57a + 79b1e16 commit d521ef6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 54 deletions.
42 changes: 13 additions & 29 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -34,25 +27,16 @@ type PropsType = {
};

export default function Home() {
const { query } = useRouter()

if (query.dev === "true") {
return (
<div className={styles.container}>
<div>
<h1 className={styles.heading}>Real Dev Squad Members</h1>
<MembersSectionMain />
</div>
<div>
<h1 className={styles.heading}>{NEW_USER}</h1>
<NewMemberSection />
</div>
</div>
);
}

// TODO: Remove this once the /users api has support for `role` query param
return (
<MaintenancePage />
)
<div className={styles.container}>
<div>
<h1 className={styles.heading}>Real Dev Squad Members</h1>
<MembersSectionMain />
</div>
<div>
<h1 className={styles.heading}>{NEW_USER}</h1>
<NewMemberSection />
</div>
</div>
);
}
14 changes: 0 additions & 14 deletions src/components/MaintenancePage/MaintenancePage.module.css

This file was deleted.

11 changes: 0 additions & 11 deletions src/components/MaintenancePage/MaintenancePage.tsx

This file was deleted.

0 comments on commit d521ef6

Please sign in to comment.