From 1164f63547ac4bc1d392471756d0145c5616b4a0 Mon Sep 17 00:00:00 2001 From: Minsu Kim Date: Tue, 24 Sep 2024 21:05:24 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=9D=BC=EC=9A=B0=ED=84=B0=20=EC=9E=98?= =?UTF-8?q?=EB=AA=BB=20=EC=93=B0=EA=B3=A0=20=EC=9E=88=EB=8A=94=20=EA=B2=83?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/preview/src/App.tsx | 17 +++++++---------- apps/preview/src/main.tsx | 7 +------ .../{ShowPreviewPage.tsx => index.tsx} | 0 3 files changed, 8 insertions(+), 16 deletions(-) rename apps/preview/src/pages/ShowPreviewPage/{ShowPreviewPage.tsx => index.tsx} (100%) diff --git a/apps/preview/src/App.tsx b/apps/preview/src/App.tsx index 3bfddb1c..14d8e1d3 100644 --- a/apps/preview/src/App.tsx +++ b/apps/preview/src/App.tsx @@ -1,12 +1,12 @@ import './index.css'; import 'the-new-css-reset/css/reset.css'; -import { QueryClientProvider, ShowPreviewResponse } from '@boolti/api'; +import { ShowPreviewResponse } from '@boolti/api'; import { BooltiUIProvider } from '@boolti/ui'; import { createBrowserRouter, RouterProvider } from 'react-router-dom'; import { HelmetProvider } from 'react-helmet-async'; -import ShowPreviewPage from './pages/ShowPreviewPage/ShowPreviewPage'; +import ShowPreviewPage from './pages/ShowPreviewPage'; import { fetcher } from '@boolti/api/src/fetcher'; const router = createBrowserRouter([ @@ -15,7 +15,6 @@ const router = createBrowserRouter([ element: , loader: async ({ params }) => { const showId = params.showId; - if (showId) { const response = await fetcher.get(`web/papi/v1/shows/${showId}`); return response; @@ -26,13 +25,11 @@ const router = createBrowserRouter([ const App = () => { return ( - - - - - - - + + + + + ); }; diff --git a/apps/preview/src/main.tsx b/apps/preview/src/main.tsx index a996ccdf..028ca158 100644 --- a/apps/preview/src/main.tsx +++ b/apps/preview/src/main.tsx @@ -1,10 +1,5 @@ import ReactDOM from 'react-dom/client'; import App from './App.tsx'; -import { BrowserRouter } from 'react-router-dom'; -ReactDOM.createRoot(document.getElementById('root')!).render( - - - , -); +ReactDOM.createRoot(document.getElementById('root')!).render(); diff --git a/apps/preview/src/pages/ShowPreviewPage/ShowPreviewPage.tsx b/apps/preview/src/pages/ShowPreviewPage/index.tsx similarity index 100% rename from apps/preview/src/pages/ShowPreviewPage/ShowPreviewPage.tsx rename to apps/preview/src/pages/ShowPreviewPage/index.tsx