Skip to content

Commit

Permalink
Fix:#216 home 페이지로 이동시 teams 페이지로 리다이렉션
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-bear98 committed Oct 16, 2024
1 parent fa1e445 commit 5f2486f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/MainRouter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RouterProvider, createBrowserRouter } from 'react-router-dom';
import { Navigate, RouterProvider, createBrowserRouter } from 'react-router-dom';
import AfterLoginRoute from '@routes/AfterLoginRoute';
import BeforeLoginRoute from '@routes/BeforeLoginRoute';

Expand Down Expand Up @@ -66,7 +66,7 @@ export default function MainRouter() {
),
errorElement: <ErrorPage />,
children: [
{ index: true, element: <TeamPage /> },
{ index: true, element: <Navigate to="/teams" replace /> },
{
path: 'setting',
element: <SettingLayout />,
Expand Down

0 comments on commit 5f2486f

Please sign in to comment.