mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-18 05:09:23 +00:00
add cards table and pagination
This commit is contained in:
@@ -8,6 +8,8 @@ import {
|
||||
|
||||
import { SignInPage, DecksPage } from './pages'
|
||||
|
||||
import { DeckPage } from '@/pages/deck-page/deck-page.tsx'
|
||||
|
||||
const publicRoutes: RouteObject[] = [
|
||||
{
|
||||
element: <Outlet />,
|
||||
@@ -25,6 +27,10 @@ const privateRoutes: RouteObject[] = [
|
||||
path: '/',
|
||||
element: <DecksPage />,
|
||||
},
|
||||
{
|
||||
path: '/decks/:deckId',
|
||||
element: <DeckPage />,
|
||||
},
|
||||
]
|
||||
|
||||
const router = createBrowserRouter([
|
||||
|
||||
Reference in New Issue
Block a user