From 3a0a71ab2aea6151fe41f540f127d6315383ce64 Mon Sep 17 00:00:00 2001 From: diogogmatos Date: Thu, 8 Feb 2024 00:42:41 +0000 Subject: [PATCH] chore: update shifts data --- .../CalendarExportModal.tsx | 8 +- .../ClearScheduleButton.tsx | 2 +- .../DarkModeToggler/DarkModeToggler.tsx | 60 +- components/DarkModeToggler/index.ts | 2 +- components/EventModal/EventModal.tsx | 4 +- components/ExportButton/ExportButton.tsx | 2 +- components/FilterBlock/FilterBlock.tsx | 6 +- components/Install/Install.tsx | 4 +- components/Layout/Layout.tsx | 36 +- components/NavigationPane/NavigationPane.tsx | 8 +- components/Settings/Settings.tsx | 2 +- components/ShareButton/ShareButton.tsx | 2 +- components/ShareModal/ShareModal.tsx | 8 +- components/ShiftModal/ShiftModal.tsx | 4 +- components/Sidebar/Sidebar.tsx | 34 +- components/Themes/Themes.tsx | 14 +- data/filters.json | 598 +++--------------- data/shifts.json | 12 +- pages/_app.tsx | 8 +- pages/_document.tsx | 5 +- pages/schedule.tsx | 3 +- scraper/subjects.json | 2 +- scraper/subjects_short_names.json | 2 +- styles/globals.css | 28 +- 24 files changed, 232 insertions(+), 622 deletions(-) diff --git a/components/CalendarExportModal/CalendarExportModal.tsx b/components/CalendarExportModal/CalendarExportModal.tsx index fc9dfe82..188af3ff 100644 --- a/components/CalendarExportModal/CalendarExportModal.tsx +++ b/components/CalendarExportModal/CalendarExportModal.tsx @@ -138,7 +138,7 @@ const CalendarExportModal = ({ > -
+
{URL}
@@ -176,7 +176,7 @@ const CalendarExportModal = ({
- +

diff --git a/components/ClearScheduleButton/ClearScheduleButton.tsx b/components/ClearScheduleButton/ClearScheduleButton.tsx index f2bbd556..db6ddc31 100644 --- a/components/ClearScheduleButton/ClearScheduleButton.tsx +++ b/components/ClearScheduleButton/ClearScheduleButton.tsx @@ -27,7 +27,7 @@ const ClearScheduleButton = ({ disabled={isSettings} > @@ -28,7 +28,7 @@ const Install = () => { > { const [isOpen, setIsOpen] = useState(false); - const hamburgerLine = `h-1 w-6 my-0.5 rounded-full bg-black transition ease transform duration-300 dark:bg-neutral-200 bg-neutral-900`; + const hamburgerLine = `h-1 w-6 my-0.5 rounded-full bg-black transition ease transform duration-300 dark:bg-neutral-200 bg-neutral-900`; const { resolvedTheme } = useTheme(); const [logo, setLogo] = useState(null); // necesary so logo renders only on the client - useEffect(() => setLogo( - - Calendarium Logo - - ), [resolvedTheme]); + useEffect( + () => + setLogo( + + Calendarium Logo + + ), + [resolvedTheme] + ); return ( -

+
{/* Open/Close Sidebar Button */}
diff --git a/components/NavigationPane/NavigationPane.tsx b/components/NavigationPane/NavigationPane.tsx index e25472d2..3270caf7 100644 --- a/components/NavigationPane/NavigationPane.tsx +++ b/components/NavigationPane/NavigationPane.tsx @@ -5,14 +5,14 @@ const NavigationPane = () => { const { asPath } = useRouter(); return ( -
-
+
+
EVENTS @@ -22,7 +22,7 @@ const NavigationPane = () => { SCHEDULE diff --git a/components/Settings/Settings.tsx b/components/Settings/Settings.tsx index 4fd369a0..2df6058b 100644 --- a/components/Settings/Settings.tsx +++ b/components/Settings/Settings.tsx @@ -20,7 +20,7 @@ const Settings = ({ isHome, }: SettingsProps) => { return ( -
+
{/* Title */}
Settings
diff --git a/components/ShareButton/ShareButton.tsx b/components/ShareButton/ShareButton.tsx index f7589a3e..b09ba006 100644 --- a/components/ShareButton/ShareButton.tsx +++ b/components/ShareButton/ShareButton.tsx @@ -24,7 +24,7 @@ const ShareButton = ({ return (
updateColors(newColor)} /> @@ -277,7 +277,7 @@ const Themes = ({ saveTheme, filters, isOpen, setIsOpen, isHome }) => {
updateSubjectColors(newColor)} /> @@ -348,7 +348,7 @@ const Themes = ({ saveTheme, filters, isOpen, setIsOpen, isHome }) => {