From 340a138f18d46bd6156bfc3465877e87d143dc3c Mon Sep 17 00:00:00 2001 From: shlee9999 <95556588+shlee9999@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:42:39 +0900 Subject: [PATCH 1/8] =?UTF-8?q?=F0=9F=90=9BFix:=20Footer=20PageLoader=20?= =?UTF-8?q?=EC=98=81=ED=96=A5=20X?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 7 ++----- src/components/Footer/styles.ts | 1 + src/router.tsx | 6 +++++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index d503728..8904cca 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,6 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { ReactQueryDevtools } from '@tanstack/react-query-devtools' -import { Suspense, useState } from 'react' +import { useState } from 'react' import { Helmet, HelmetProvider } from 'react-helmet-async' import { RouterProvider } from 'react-router-dom' import styled, { ThemeProvider } from 'styled-components' @@ -8,7 +8,6 @@ import PWABadge from '~/PWABadge' import { router } from '~/router' import GlobalStyle from '~/styles/globalStyle' import { darkTheme, lightTheme } from '~/styles/theme' -import PageLoader from '~components/PageLoader' import PushNotification from '~components/PushNotification' const queryClient = new QueryClient() @@ -31,9 +30,7 @@ function App() { - }> - - + diff --git a/src/components/Footer/styles.ts b/src/components/Footer/styles.ts index b922fa1..03dc593 100644 --- a/src/components/Footer/styles.ts +++ b/src/components/Footer/styles.ts @@ -10,6 +10,7 @@ export const Footer = styled.footer` bottom: 0; background-color: ${({ theme }) => theme.colors.grayscale.gc_4}; box-shadow: inset 0 1px 0 0 ${({ theme }) => theme.colors.grayscale.gc_1}; + z-index: 1000; ` export const FooterNavList = styled.ul` diff --git a/src/router.tsx b/src/router.tsx index d2252e6..fd77d50 100644 --- a/src/router.tsx +++ b/src/router.tsx @@ -4,6 +4,8 @@ import Footer from '~components/Footer' import ModalContainer from '~modals/ModalContainer' import * as Pages from './components/LazyComponents' import GlobalHookContainer from '~components/GlobalHookContainer' +import { Suspense } from 'react' +import PageLoader from '~components/PageLoader' export const router = createBrowserRouter([ { @@ -11,7 +13,9 @@ export const router = createBrowserRouter([ element: ( - + }> + +