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