update page.tsx visual=true filter,

This commit is contained in:
louiscklaw
2025-04-22 13:19:12 +08:00
parent 01ce517629
commit 2f28d71060
43 changed files with 3660 additions and 3461 deletions

View File

@@ -25,7 +25,7 @@ import { DataTable } from '@/components/core/data-table';
import type { ColumnDef } from '@/components/core/data-table';
import ConfirmDeleteModal from './confirm-delete-modal';
import { useLpQuestionsSelection } from './mf-questions-selection-context';
import { useMfQuestionsSelection } from './mf-questions-selection-context';
import type { MfQuestion } from './type';
function columns(handleDeleteClick: (testId: string) => void): ColumnDef<MfQuestion>[] {
@@ -193,7 +193,7 @@ export interface LessonQuestionsTableProps {
export function MfQuestionsTable({ rows, reloadRows }: LessonQuestionsTableProps): React.JSX.Element {
const { t } = useTranslation(['lp_categories']);
const { deselectAll, deselectOne, selectAll, selectOne, selected } = useLpQuestionsSelection();
const { deselectAll, deselectOne, selectAll, selectOne, selected } = useMfQuestionsSelection();
const [idToDelete, setIdToDelete] = React.useState('');
const [open, setOpen] = React.useState(false);