From 4185d1145a92a9af2b5b5831dcecab4ccfd62a8a Mon Sep 17 00:00:00 2001 From: Wang Jiefan Date: Mon, 6 Nov 2023 16:13:58 +0800 Subject: [PATCH] reset paging limit; remove redundancy --- src/pages/questions/index.tsx | 2 +- src/types/global.ts | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/pages/questions/index.tsx b/src/pages/questions/index.tsx index bd59800..8922bba 100644 --- a/src/pages/questions/index.tsx +++ b/src/pages/questions/index.tsx @@ -11,7 +11,7 @@ import { StyledCheckbox } from "../../components/StyledCheckbox"; import { Question, type QuestionMap } from "../../types/global"; import { equals, makeMap } from "../../utils/utils"; -const pagingLimit = 2; +const pagingLimit = 50; function Questions() { const { data: sessionData } = useSession(); diff --git a/src/types/global.ts b/src/types/global.ts index ab30979..1555c94 100644 --- a/src/types/global.ts +++ b/src/types/global.ts @@ -12,13 +12,6 @@ export class Question { export type QuestionMap = Map; -export class QuestionPagination { - cursor: string | undefined = undefined; - limit = 3; - titleFilter: string | undefined = undefined; - backwards = false; -}; - // todo: dup code export type ModifyQuestionProps = { questionTitleList: { id: string; title: string; category: string; difficulty: Difficulty }[];