Skip to content

Commit d221eb3

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

File tree

1 file changed

+10
-13
lines changed
  • src/pages/communities/[slug]/challenges/[challenge_id]/submissions

1 file changed

+10
-13
lines changed

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

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
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 SubmissionList from "@/components/sections/submissions/List";
6-
import MetaData from "@/components/ui/MetaData";
72
import useSubmissionNavigation from "@/hooks/useSubmissionNavigation";
83
import { wrapper } from "@/store";
94
import { fetchAllSubmission, fetchChallenge } from "@/store/services/communities/challenges";
@@ -12,10 +7,10 @@ import { Submission as SubmissionType } from "@/types/bounty";
127
import { Community } from "@/types/community";
138
import { Challenge } from "@/types/course";
149
import { NotFoundError } from "@/utilities/errors/NotFoundError";
10+
// import { he } from "date-fns/locale";÷
1511
import { GetServerSideProps } from "next";
1612
import { useTranslation } from "next-i18next";
1713
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
18-
import Head from "next/head";
1914
import { ReactElement, useMemo } from "react";
2015

2116
/**
@@ -41,19 +36,21 @@ export default function Submission(props: { pageProps: { currentCommunity: Commu
4136

4237
if (!submissions) return <></>;
4338

39+
console.log(submissions, challenge, selectedSubmission, handleCloseSubmission, showPopup, headerPaths);
40+
4441
return (
4542
<>
46-
<Head>
43+
{/* <Head>
4744
<title>{`${t("communities.submission.title")} ${challenge?.name}`}</title>
4845
<MetaData description={challenge?.description as string} />
49-
</Head>
50-
<Wrapper paths={headerPaths}>
46+
</Head> */}
47+
{/* <Wrapper paths={headerPaths}> */}
5148
<div className="flex flex-col py-4 space-y-8 text-gray-700">
52-
<Header title={challenge?.name} subtitle={t("communities.submission.title")} isTeamChallenge={challenge?.isTeamChallenge} isHackathon={challenge?.isHackathon} />
53-
<SubmissionList />
49+
{/* <Header title={challenge?.name} subtitle={t("communities.submission.title")} isTeamChallenge={challenge?.isTeamChallenge} isHackathon={challenge?.isHackathon} /> */}
50+
{/* <SubmissionList /> */}
5451
</div>
55-
{showPopup && <SubmissionPopup show={showPopup} onClose={handleCloseSubmission} submissionId={selectedSubmission?.id} />}
56-
</Wrapper>
52+
{showPopup && "Hello"}
53+
{/* </Wrapper> */}
5754
</>
5855
);
5956
}

0 commit comments

Comments
 (0)