update flash card, test
This commit is contained in:
11
src/routes/flash-card.$listId.learn.tsx
Normal file
11
src/routes/flash-card.$listId.learn.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { createFileRoute } from "@tanstack/react-router"
|
||||
import { FlashCardLearnPage } from "@/features/flash-card/components/FlashCardLearnPage"
|
||||
|
||||
export const Route = createFileRoute("/flash-card/$listId/learn")({
|
||||
component: LearnPage,
|
||||
})
|
||||
|
||||
function LearnPage() {
|
||||
const { listId } = Route.useParams()
|
||||
return <FlashCardLearnPage listId={Number(listId)} />
|
||||
}
|
||||
11
src/routes/flash-card.$listId.tsx
Normal file
11
src/routes/flash-card.$listId.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { createFileRoute } from "@tanstack/react-router"
|
||||
import { FlashCardTermsPage } from "@/features/flash-card/components/FlashCardTermsPage"
|
||||
|
||||
export const Route = createFileRoute("/flash-card/$listId")({
|
||||
component: TermsPage,
|
||||
})
|
||||
|
||||
function TermsPage() {
|
||||
const { listId } = Route.useParams()
|
||||
return <FlashCardTermsPage listId={Number(listId)} />
|
||||
}
|
||||
6
src/routes/flash-card.index.tsx
Normal file
6
src/routes/flash-card.index.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import { createFileRoute } from "@tanstack/react-router"
|
||||
import { FlashCardListPage } from "@/features/flash-card/components/FlashCardListPage"
|
||||
|
||||
export const Route = createFileRoute("/flash-card/")({
|
||||
component: FlashCardListPage,
|
||||
})
|
||||
5
src/routes/flash-card.tsx
Normal file
5
src/routes/flash-card.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { createFileRoute, Outlet } from "@tanstack/react-router"
|
||||
|
||||
export const Route = createFileRoute("/flash-card")({
|
||||
component: () => <Outlet />,
|
||||
})
|
||||
11
src/routes/toeic.$testId.tsx
Normal file
11
src/routes/toeic.$testId.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { ToeicTestDetail } from '@/features/toeic/components/ToeicTestDetail'
|
||||
|
||||
export const Route = createFileRoute('/toeic/$testId')({
|
||||
component: TestDetailPage,
|
||||
})
|
||||
|
||||
function TestDetailPage() {
|
||||
const { testId } = Route.useParams()
|
||||
return <ToeicTestDetail testId={Number(testId)} />
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from "@tanstack/react-router"
|
||||
import { ToeicPractice } from "@/features/toeic/components/ToeicPractice"
|
||||
import { ToeicTestList } from "@/features/toeic/components/ToeicTestList"
|
||||
|
||||
export const Route = createFileRoute("/toeic/")({
|
||||
component: ToeicPractice,
|
||||
component: ToeicTestList,
|
||||
})
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import { createFileRoute } from "@tanstack/react-router"
|
||||
import { Vocabulary } from "@/features/vocab/components/Vocabulary"
|
||||
|
||||
export const Route = createFileRoute("/vocab")({
|
||||
component: Vocabulary,
|
||||
})
|
||||
Reference in New Issue
Block a user