From 6b075a5ab88a7910b0a82cca4767c96cc1f53ffd Mon Sep 17 00:00:00 2001
From: FinnIckler
Date: Thu, 5 Dec 2024 09:48:31 +0100
Subject: [PATCH] rename states
---
.../components/MyCompetitions/index.jsx | 22 +++++++------------
1 file changed, 8 insertions(+), 14 deletions(-)
diff --git a/app/webpacker/components/MyCompetitions/index.jsx b/app/webpacker/components/MyCompetitions/index.jsx
index c3905865d6..d38ba01e19 100644
--- a/app/webpacker/components/MyCompetitions/index.jsx
+++ b/app/webpacker/components/MyCompetitions/index.jsx
@@ -12,15 +12,9 @@ import {
import UpcomingCompetitionTable from './UpcomingCompetitionTable';
import PastCompetitionsTable from './PastCompetitionTable';
-const defaultPermissions = {
- can_attend_competitions: { scope: [] },
- can_organize_competitions: { scope: [] },
- can_administer_competitions: { scope: [] },
-};
-
export default function MyCompetitions({ permissions, competitions, userInfo }) {
const [isAccordionOpen, setIsAccordionOpen] = useState(false);
- const [shouldShowRegistrationStatus, setShouldShowRegistrationStatus] = useState(false);
+ const [shouldShowRegistrationStatus, setshouldShowRegistrationStatus] = useState(false);
return (
<>
@@ -31,9 +25,9 @@ export default function MyCompetitions({ permissions, competitions, userInfo })
{I18n.t('competitions.my_competitions.disclaimer')}
@@ -60,11 +54,11 @@ export default function MyCompetitions({ permissions, competitions, userInfo })
setShouldShowRegistrationStatus(!shouldShowRegistrationStatus)}
+ onChange={() => setshouldShowRegistrationStatus(!shouldShowRegistrationStatus)}
/>