From 0cefaa62a036718fe15e8dd9c1ba59d6505c91f9 Mon Sep 17 00:00:00 2001 From: Martin Berka Date: Mon, 12 Oct 2026 18:30:45 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20oprava=20chov=C3=A1n=C3=AD=20Hell=20Girl?= =?UTF-8?q?=20theme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/App.tsx | 2 -- client/src/AppRoutes.tsx | 38 ++++++++++++++++++++------------------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 885ce9d..9c53486 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -16,7 +16,6 @@ import './themes/hellgirl.scss'; import { faCircleCheck, faNoteSticky, faTrashCan, faComment } from '@fortawesome/free-regular-svg-icons'; import { useSettings } from './context/settings'; import Footer from './components/Footer'; -import HellGirlFlames from './components/HellGirlFlames'; import { faArrowUpRightFromSquare, faBasketShopping, faChainBroken, faChevronLeft, faChevronRight, faDharmachakra, faGear, faMoneyBillTransfer, faSatelliteDish, faSearch, faTriangleExclamation } from '@fortawesome/free-solid-svg-icons'; import { useNavigate } from 'react-router-dom'; import Loader from './components/Loader'; @@ -669,7 +668,6 @@ function App() {
{easterEgg && eggImage && }
- {settings?.styleTheme === 'hellgirl' && }
{data.todayDayIndex != null && data.todayDayIndex > 4 && diff --git a/client/src/AppRoutes.tsx b/client/src/AppRoutes.tsx index b215903..df9dbe0 100644 --- a/client/src/AppRoutes.tsx +++ b/client/src/AppRoutes.tsx @@ -8,6 +8,7 @@ import StatsPage from "./pages/StatsPage"; import OrderGroupsPage from "./pages/OrderGroupsPage"; import SuggestionsPage from "./pages/SuggestionsPage"; import App from "./App"; +import HellGirlFlames from "./components/HellGirlFlames"; export const STATS_URL = '/stats'; export const OBJEDNANI_URL = '/objednani'; @@ -22,34 +23,35 @@ function Butterflies() { return ; } +/** Doplňkové efekty vizuálních stylů — společné pro všechny stránky (např. plamen při otevření dialogu). */ +function StyleThemeEffects() { + const settings = useSettings(); + return settings?.styleTheme === 'hellgirl' ? : null; +} + export default function AppRoutes() { return ( - - } /> - - - - } /> - + + + + } /> + } /> + - - } /> - + } /> + <> - + - - } /> - + } /> + + ); -} \ No newline at end of file +}