mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-11 21:56:11 -05:00
Rename useSimplePagination hook
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
||||
import type { ListedArt } from "../art-types";
|
||||
import { Dialog } from "~/components/Dialog";
|
||||
import * as React from "react";
|
||||
import { useSimplePagination } from "~/hooks/useSimplePagination";
|
||||
import { usePagination } from "~/hooks/usePagination";
|
||||
import { ART_PER_PAGE } from "../art-constants";
|
||||
import { Button, LinkButton } from "~/components/Button";
|
||||
import clsx from "clsx";
|
||||
@@ -42,7 +42,7 @@ export function ArtGrid({
|
||||
nextPage,
|
||||
previousPage,
|
||||
setPage,
|
||||
} = useSimplePagination({
|
||||
} = usePagination({
|
||||
items: arts,
|
||||
pageSize: ART_PER_PAGE,
|
||||
});
|
||||
|
||||
@@ -41,7 +41,7 @@ import { createNewTeam } from "../queries/createNewTeam.server";
|
||||
import { TEAM, TEAMS_PER_PAGE } from "../team-constants";
|
||||
import { createTeamSchema } from "../team-schemas.server";
|
||||
import styles from "../team.css";
|
||||
import { useSimplePagination } from "~/hooks/useSimplePagination";
|
||||
import { usePagination } from "~/hooks/usePagination";
|
||||
import { Pagination } from "~/components/Pagination";
|
||||
|
||||
export const meta: V2_MetaFunction = ({
|
||||
@@ -182,7 +182,7 @@ export default function TeamSearchPage() {
|
||||
nextPage,
|
||||
previousPage,
|
||||
setPage,
|
||||
} = useSimplePagination({
|
||||
} = usePagination({
|
||||
items: filteredTeams,
|
||||
pageSize: TEAMS_PER_PAGE,
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as React from "react";
|
||||
|
||||
export function useSimplePagination<T>({
|
||||
export function usePagination<T>({
|
||||
items,
|
||||
pageSize,
|
||||
}: {
|
||||
Reference in New Issue
Block a user