File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import { FormattedMessage } from "react-intl";
1010
1111import type { GetServerSideProps , GetStaticProps } from "next" ;
1212
13+ import { useRouter } from "next/router" ;
14+ import { useEffect } from "react" ;
1315import { addApolloState , getApolloClient } from "~/apollo/client" ;
1416import { Introduction } from "~/components/cfp-introduction" ;
1517import { CfpSendSubmission } from "~/components/cfp-send-submission" ;
@@ -52,6 +54,8 @@ const CfpSectionOrClosedMessage = ({ open }: { open: boolean }) => {
5254
5355export 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 ) ;
You can’t perform that action at this time.
0 commit comments