This commit is contained in:
louiscklaw
2025-04-22 01:07:18 +08:00
parent e4aee3f02f
commit 7f3f02463f
33 changed files with 62 additions and 2283 deletions

View File

@@ -193,7 +193,7 @@ export interface LessonQuestionsTableProps {
export function LpQuestionsTable({ rows, reloadRows }: LessonQuestionsTableProps): React.JSX.Element {
const { t } = useTranslation(['lp_categories']);
const { deselectAll, deselectOne, selectAll, selectOne, selected } = useLpCategoriesSelection();
const { deselectAll, deselectOne, selectAll, selectOne, selected } = useLpQuestionsSelection();
const [idToDelete, setIdToDelete] = React.useState('');
const [open, setOpen] = React.useState(false);
@@ -211,7 +211,7 @@ export function LpQuestionsTable({ rows, reloadRows }: LessonQuestionsTableProps
reloadRows={reloadRows}
setOpen={setOpen}
/>
<DataTable<LpCategory>
<DataTable<LpQuestion>
columns={columns(handleDeleteClick)}
onDeselectAll={deselectAll}
onDeselectOne={(_, row) => {