diff --git a/src/components/Loading/index.tsx b/src/components/Loading/index.tsx index d489d87..34dab96 100644 --- a/src/components/Loading/index.tsx +++ b/src/components/Loading/index.tsx @@ -8,7 +8,7 @@ export const Loading = () => { React.useEffect(() => { const handleStart = (url: string) => { - return url !== router.asPath && url === "/editor" && setLoading(true); + return url !== router.asPath && (url === "/editor" || url === "/widget") && setLoading(true); }; const handleComplete = (url: string) => url === router.asPath && setLoading(false); diff --git a/src/layout/Layout/index.tsx b/src/layout/Layout/index.tsx index d0697c4..a411beb 100644 --- a/src/layout/Layout/index.tsx +++ b/src/layout/Layout/index.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { MantineProvider } from "@mantine/core"; +import { useMantineColorScheme } from "@mantine/core"; import styled, { ThemeProvider } from "styled-components"; import { lightTheme } from "src/constants/theme"; import { Footer } from "../Footer"; @@ -10,17 +10,21 @@ const StyledLayoutWrapper = styled.div` `; const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) => { + const { setColorScheme } = useMantineColorScheme(); + + React.useEffect(() => { + setColorScheme("light"); + }, [setColorScheme]); + return ( - - - - - {children} -