This commit is contained in:
louiscklaw
2025-04-26 06:15:18 +08:00
parent df87cfb037
commit 6e8fea3bdd
57 changed files with 1392 additions and 20183 deletions

View File

@@ -10,7 +10,7 @@ import { ArrowLeft as ArrowLeftIcon } from '@phosphor-icons/react/dist/ssr/Arrow
import { useTranslation } from 'react-i18next';
import { paths } from '@/paths';
import { LessonCategoryCreateForm } from '@/components/dashboard/lesson_category/lesson-category-create-form';
import { VocabularyCreateForm } from '@/components/dashboard/vocabulary/vocabulary-create-form';
export default function Page(): React.JSX.Element {
const { t } = useTranslation();
@@ -29,19 +29,19 @@ export default function Page(): React.JSX.Element {
<Link
color="text.primary"
component={RouterLink}
href={paths.dashboard.lesson_categories.list}
href={paths.dashboard.vocabularies.list}
sx={{ alignItems: 'center', display: 'inline-flex', gap: 1 }}
variant="subtitle2"
>
<ArrowLeftIcon fontSize="var(--icon-fontSize-md)" />
{t('title', { ns: 'lesson_category' })}
{t('title',)}
</Link>
</div>
<div>
<Typography variant="h4">{t('create.title', { ns: 'lesson_category' })}</Typography>
<Typography variant="h4">{t('create.title', )}</Typography>
</div>
</Stack>
<LessonCategoryCreateForm />
<VocabularyCreateForm />
</Stack>
</Box>
);