Skip to content

Commit

Permalink
reset paging limit; remove redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nafeij committed Nov 6, 2023
1 parent a64210e commit 4185d11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/pages/questions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
7 changes: 0 additions & 7 deletions src/types/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ export class Question {

export type QuestionMap = Map<string, Question>;

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 }[];
Expand Down

0 comments on commit 4185d11

Please sign in to comment.