Skip to content

Commit

Permalink
Merge pull request #11 from lugvitc/main
Browse files Browse the repository at this point in the history
Close registrations
  • Loading branch information
WizzyGeek authored Jun 24, 2024
2 parents 4f1df06 + 7a04f68 commit 60880b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/pages/apply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ function onSumbitFactory(
return onSubmit;
}

const open = false;

export default function Apply() {
const session = useContext(SessionContext);
const navigate = useNavigate();
Expand All @@ -324,7 +326,7 @@ export default function Apply() {
<section className={(session !== null ? "apply" : "") + " main"}>
<main>
<CountContext.Provider value={count || 0}>
{session !== null ? (
{open ? (session !== null ? (
<div className=" border-2 sm:rounded-md sm:w-fit w-full max-w-[640px] border-[#202020] text-white backdrop-blur-md bg-[#ffffff09]">
{(count || 0) < 2 ? (
<Formik
Expand All @@ -348,7 +350,11 @@ export default function Apply() {
<div>
<span className="text-2xl">Not logged in</span>
</div>
)}
)) : (
<div className=" border-2 sm:rounded-md sm:w-fit w-full max-w-[640px] border-[#202020] text-white backdrop-blur-md bg-[#ffffff09] p-8">
Applications have been closed, thank for your interest.
</div>
)}
</CountContext.Provider>
</main>
</section>
Expand Down

0 comments on commit 60880b5

Please sign in to comment.