Skip to content

Commit 9bd7dcd

Browse files
committed
chore(troubleshoot): reduce components used on submission list page for testing
1 parent d221eb3 commit 9bd7dcd

File tree

1 file changed

+11
-9
lines changed
  • src/pages/communities/[slug]/challenges/[challenge_id]/submissions

1 file changed

+11
-9
lines changed

src/pages/communities/[slug]/challenges/[challenge_id]/submissions/index.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import DefaultLayout from "@/components/layout/Default";
2+
import SubmissionPopup from "@/components/popups/submission";
3+
import Header from "@/components/sections/communities/_partials/Header";
4+
import Wrapper from "@/components/sections/courses/Wrapper";
5+
import MetaData from "@/components/ui/MetaData";
26
import useSubmissionNavigation from "@/hooks/useSubmissionNavigation";
37
import { wrapper } from "@/store";
48
import { fetchAllSubmission, fetchChallenge } from "@/store/services/communities/challenges";
@@ -7,10 +11,10 @@ import { Submission as SubmissionType } from "@/types/bounty";
711
import { Community } from "@/types/community";
812
import { Challenge } from "@/types/course";
913
import { NotFoundError } from "@/utilities/errors/NotFoundError";
10-
// import { he } from "date-fns/locale";÷
1114
import { GetServerSideProps } from "next";
1215
import { useTranslation } from "next-i18next";
1316
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
17+
import Head from "next/head";
1418
import { ReactElement, useMemo } from "react";
1519

1620
/**
@@ -36,21 +40,19 @@ export default function Submission(props: { pageProps: { currentCommunity: Commu
3640

3741
if (!submissions) return <></>;
3842

39-
console.log(submissions, challenge, selectedSubmission, handleCloseSubmission, showPopup, headerPaths);
40-
4143
return (
4244
<>
43-
{/* <Head>
45+
<Head>
4446
<title>{`${t("communities.submission.title")} ${challenge?.name}`}</title>
4547
<MetaData description={challenge?.description as string} />
46-
</Head> */}
47-
{/* <Wrapper paths={headerPaths}> */}
48+
</Head>
49+
<Wrapper paths={headerPaths}>
4850
<div className="flex flex-col py-4 space-y-8 text-gray-700">
49-
{/* <Header title={challenge?.name} subtitle={t("communities.submission.title")} isTeamChallenge={challenge?.isTeamChallenge} isHackathon={challenge?.isHackathon} /> */}
51+
<Header title={challenge?.name} subtitle={t("communities.submission.title")} isTeamChallenge={challenge?.isTeamChallenge} isHackathon={challenge?.isHackathon} />
5052
{/* <SubmissionList /> */}
5153
</div>
52-
{showPopup && "Hello"}
53-
{/* </Wrapper> */}
54+
{showPopup && <SubmissionPopup show={showPopup} onClose={handleCloseSubmission} submissionId={selectedSubmission?.id} />}
55+
</Wrapper>
5456
</>
5557
);
5658
}

0 commit comments

Comments
 (0)