Skip to content

Commit

Permalink
빌드 에러 수정 (issue #744) (#745)
Browse files Browse the repository at this point in the history
* refactor: 커스텀 뮤테이션 인자 변경

* Merge branch 'dev' of https://github.com/woowacourse-teams/2024-devel-up into dev

* remove: 파일 삭제

* refactor: 수정사항 반영
  • Loading branch information
brgndyy authored Oct 24, 2024
1 parent 1bce929 commit 439bae2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
48 changes: 24 additions & 24 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,28 +296,28 @@ export const router = createBrowserRouter(routes, {
// return worker.start();
// }

enableMocking().then(() => {
root.render(
<React.StrictMode>
<QueryClientProvider client={queryClient}>
<ThemeProvider theme={theme}>
<ReactQueryDevtools initialIsOpen={false} />
<GlobalStyle />
<RouterProvider router={router} />
</ThemeProvider>
</QueryClientProvider>
</React.StrictMode>,
);
});
// enableMocking().then(() => {
// root.render(
// <React.StrictMode>
// <QueryClientProvider client={queryClient}>
// <ThemeProvider theme={theme}>
// <ReactQueryDevtools initialIsOpen={false} />
// <GlobalStyle />
// <RouterProvider router={router} />
// </ThemeProvider>
// </QueryClientProvider>
// </React.StrictMode>,
// );
// });

// root.render(
// <React.StrictMode>
// <QueryClientProvider client={queryClient}>
// <ReactQueryDevtools />
// <ThemeProvider theme={theme}>
// <GlobalStyle />
// <RouterProvider router={router} />
// </ThemeProvider>
// </QueryClientProvider>
// </React.StrictMode>,
// );
root.render(
<React.StrictMode>
<QueryClientProvider client={queryClient}>
<ReactQueryDevtools />
<ThemeProvider theme={theme}>
<GlobalStyle />
<RouterProvider router={router} />
</ThemeProvider>
</QueryClientProvider>
</React.StrictMode>,
);
14 changes: 7 additions & 7 deletions frontend/src/pages/DashboardPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ export default function DashboardPage() {

return (
<DashboardLayoutContextProvider>
{/* <PrivateRoute redirectTo={ROUTES.login}> */}
<DashboardPageLayout>
<SpinnerSuspense>
<Outlet />
</SpinnerSuspense>
</DashboardPageLayout>
{/* </PrivateRoute> */}
<PrivateRoute redirectTo={ROUTES.login}>
<DashboardPageLayout>
<SpinnerSuspense>
<Outlet />
</SpinnerSuspense>
</DashboardPageLayout>
</PrivateRoute>
</DashboardLayoutContextProvider>
);
}

0 comments on commit 439bae2

Please sign in to comment.