update,
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
// src/app/dashboard/teachers/page.tsx
|
||||
// src/app/dashboard/teachers/list/page.tsx
|
||||
'use client';
|
||||
|
||||
// RULES:
|
||||
// contains list page for teachers (Teachers)
|
||||
// contain definition to collection only
|
||||
//
|
||||
import * as React from 'react';
|
||||
import { useRouter } from 'next/navigation';
|
||||
|
@@ -1,3 +1,4 @@
|
||||
// src/app/dashboard/vocabularies/list/page.tsx
|
||||
'use client';
|
||||
|
||||
// RULES:
|
||||
@@ -29,17 +30,15 @@ import { VocabulariesPagination } from '@/components/dashboard/vocabulary/vocabu
|
||||
import { VocabulariesSelectionProvider } from '@/components/dashboard/vocabulary/vocabularies-selection-context';
|
||||
import { VocabulariesTable } from '@/components/dashboard/vocabulary/vocabularies-table';
|
||||
import type { Vocabulary } from '@/components/dashboard/vocabulary/type';
|
||||
// import type { Vocabulary } from '@/components/dashboard/lp_categories/type';
|
||||
import FormLoading from '@/components/loading';
|
||||
|
||||
// import { lessonCategoriesSampleData } from './lesson-categories-sample-data';
|
||||
|
||||
export default function Page({ searchParams }: PageProps): React.JSX.Element {
|
||||
const { t } = useTranslation();
|
||||
const { email, phone, sortDir, status, name, visible, type } = searchParams;
|
||||
const router = useRouter();
|
||||
|
||||
const { email, phone, sortDir, status, name, visible, type } = searchParams;
|
||||
|
||||
const [lessonCategoriesData, setLessonCategoriesData] = React.useState<Vocabulary[]>([]);
|
||||
//
|
||||
|
||||
const [isLoadingAddPage, setIsLoadingAddPage] = React.useState<boolean>(false);
|
||||
const [showLoading, setShowLoading] = React.useState<boolean>(true);
|
||||
|
Reference in New Issue
Block a user