From 50a4522d5c032e55c924fcf7b4bc90086ed4a4f3 Mon Sep 17 00:00:00 2001 From: cophilot Date: Sun, 11 Aug 2024 15:27:06 +0200 Subject: [PATCH] update: Sun 11 Aug 2024 15:27:06 CEST --- src/views/HomeView.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/HomeView.tsx b/src/views/HomeView.tsx index df47448..c03a3e7 100644 --- a/src/views/HomeView.tsx +++ b/src/views/HomeView.tsx @@ -11,6 +11,7 @@ import { useIsDarkModeEnabled, useToggleTheme, } from '../providers/ThemeProvider'; +import StyleUtils from '../api/utils/StyleUtils'; export default function HomeView() { const navigate = useNavigate(); @@ -18,6 +19,7 @@ export default function HomeView() { const isDarkModeEnabled = useIsDarkModeEnabled(); useEffect(() => { document.title = 'BoardScoreHub'; + StyleUtils.setDefaultValues(isDarkModeEnabled()); }, []); const games = getSortedGameNames();