From 0630f6335c289161761b2e42a88a3e7cf9b8305a Mon Sep 17 00:00:00 2001 From: Janderson Souza Matias Date: Fri, 3 Nov 2023 11:06:25 -0300 Subject: [PATCH] change switch label --- src/pages/CoachOverTime/index.tsx | 6 +++--- src/pages/SessionData/index.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/CoachOverTime/index.tsx b/src/pages/CoachOverTime/index.tsx index dd85222..b5bc22f 100644 --- a/src/pages/CoachOverTime/index.tsx +++ b/src/pages/CoachOverTime/index.tsx @@ -26,7 +26,7 @@ const CoachOverTimePage: React.FC = () => { const [sessionOverTime, setSessionOverTime] = useState([]); const [isLoadingList, setIsLoadingList] = useState(false); const [sessionToView, setSessionToView] = useState(); - const [showOnlyWithValues, setShowOnlyWithValues] = useState(false); + const [showOnlyWithValues, setShowOnlyWithValues] = useState(true); const [region, setRegion] = useState(); const [schoolId, setSchoolId] = useState(); @@ -86,11 +86,11 @@ const CoachOverTimePage: React.FC = () => { - Only schools with sessions? + Include schools with no data setShowOnlyWithValues(Boolean(e.target.checked))} /> diff --git a/src/pages/SessionData/index.tsx b/src/pages/SessionData/index.tsx index cf2ba81..56071ee 100644 --- a/src/pages/SessionData/index.tsx +++ b/src/pages/SessionData/index.tsx @@ -18,7 +18,7 @@ const SessionDataPage: React.FC = () => { const [period, setPeriod] = useState(); const [region, setRegion] = useState(); const [schoolId, setSchoolId] = useState(); - const [showOnlyWithValues, setShowOnlyWithValues] = useState(false); + const [showOnlyWithValues, setShowOnlyWithValues] = useState(true); useEffect(() => { loadSessions(period, region, schoolId, showOnlyWithValues); @@ -82,11 +82,11 @@ const SessionDataPage: React.FC = () => { - Only schools with sessions? + Include schools with no data setShowOnlyWithValues(Boolean(e.target.checked))} />