From cbadbf907f22be7a81897008a812a12afbee46d9 Mon Sep 17 00:00:00 2001 From: AykutSarac Date: Wed, 8 May 2024 13:06:06 +0300 Subject: [PATCH] fix: themes --- src/containers/Modals/PremiumModal/index.tsx | 2 +- src/layout/Layout/index.tsx | 26 +++++----- src/layout/Navbar/index.tsx | 8 +-- src/pages/_app.tsx | 51 +++++++++++--------- src/pages/editor.tsx | 39 ++++++++------- src/pages/index.tsx | 6 +-- src/pages/pricing.tsx | 11 ++--- 7 files changed, 74 insertions(+), 69 deletions(-) diff --git a/src/containers/Modals/PremiumModal/index.tsx b/src/containers/Modals/PremiumModal/index.tsx index b1152fa..15eaa42 100644 --- a/src/containers/Modals/PremiumModal/index.tsx +++ b/src/containers/Modals/PremiumModal/index.tsx @@ -20,7 +20,7 @@ export const PremiumModal: React.FC = ({ opened, onClose }) => { Free - = ({ children }) => { + const { setColorScheme } = useMantineColorScheme(); + + React.useEffect(() => { + setColorScheme("light"); + }, [setColorScheme]); + return ( - - - - - - {children} -