Skip to content

Commit 5e64f48

Browse files
authored
Add ability to see the CFP form (#4192)
1 parent 86af124 commit 5e64f48

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

frontend/src/pages/cfp/index.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { FormattedMessage } from "react-intl";
1010

1111
import type { GetServerSideProps, GetStaticProps } from "next";
1212

13+
import { useRouter } from "next/router";
14+
import { useEffect } from "react";
1315
import { addApolloState, getApolloClient } from "~/apollo/client";
1416
import { Introduction } from "~/components/cfp-introduction";
1517
import { CfpSendSubmission } from "~/components/cfp-send-submission";
@@ -52,6 +54,8 @@ const CfpSectionOrClosedMessage = ({ open }: { open: boolean }) => {
5254

5355
export const CFPPage = () => {
5456
const code = process.env.conferenceCode;
57+
const router = useRouter();
58+
5559
const { data } = useIsCfpOpenQuery({
5660
variables: { conference: code },
5761
});
@@ -64,7 +68,13 @@ export const CFPPage = () => {
6468

6569
<Section>
6670
<Introduction deadline={data.conference.cfpDeadline?.end} />
67-
<CfpSectionOrClosedMessage open={data.conference.isCFPOpen || false} />
71+
<CfpSectionOrClosedMessage
72+
open={
73+
(router.query?.force ?? "") === "yes" ||
74+
data.conference.isCFPOpen ||
75+
false
76+
}
77+
/>
6878
</Section>
6979
</Page>
7080
);

0 commit comments

Comments
 (0)