1
1
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" ;
7
2
import useSubmissionNavigation from "@/hooks/useSubmissionNavigation" ;
8
3
import { wrapper } from "@/store" ;
9
4
import { fetchAllSubmission , fetchChallenge } from "@/store/services/communities/challenges" ;
@@ -12,10 +7,10 @@ import { Submission as SubmissionType } from "@/types/bounty";
12
7
import { Community } from "@/types/community" ;
13
8
import { Challenge } from "@/types/course" ;
14
9
import { NotFoundError } from "@/utilities/errors/NotFoundError" ;
10
+ // import { he } from "date-fns/locale";÷
15
11
import { GetServerSideProps } from "next" ;
16
12
import { useTranslation } from "next-i18next" ;
17
13
import { serverSideTranslations } from "next-i18next/serverSideTranslations" ;
18
- import Head from "next/head" ;
19
14
import { ReactElement , useMemo } from "react" ;
20
15
21
16
/**
@@ -41,19 +36,21 @@ export default function Submission(props: { pageProps: { currentCommunity: Commu
41
36
42
37
if ( ! submissions ) return < > </ > ;
43
38
39
+ console . log ( submissions , challenge , selectedSubmission , handleCloseSubmission , showPopup , headerPaths ) ;
40
+
44
41
return (
45
42
< >
46
- < Head >
43
+ { /* <Head>
47
44
<title>{`${t("communities.submission.title")} ${challenge?.name}`}</title>
48
45
<MetaData description={challenge?.description as string} />
49
- </ Head >
50
- < Wrapper paths = { headerPaths } >
46
+ </Head> */ }
47
+ { /* <Wrapper paths={headerPaths}> */ }
51
48
< 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 /> */ }
54
51
</ div >
55
- { showPopup && < SubmissionPopup show = { showPopup } onClose = { handleCloseSubmission } submissionId = { selectedSubmission ?. id } /> }
56
- </ Wrapper >
52
+ { showPopup && "Hello" }
53
+ { /* </Wrapper> */ }
57
54
</ >
58
55
) ;
59
56
}
0 commit comments