oh lord. prettier eslint and all that

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-11-02 20:24:41 +01:00
parent e1f37b439e
commit 107feda4ad
121 changed files with 1856 additions and 1684 deletions

View File

@@ -1,5 +1,6 @@
import { useMemo, useState } from "react";
import { Button } from "./ui/button";
import { useMemo, useState } from 'react';
import { Button } from './ui/button';
export function usePagination(take = 100) {
const [skip, setSkip] = useState(0);
@@ -12,11 +13,11 @@ export function usePagination(take = 100) {
canPrev: skip > 0,
canNext: true,
}),
[skip, setSkip, take],
[skip, setSkip, take]
);
}
export type PaginationProps = ReturnType<typeof usePagination>
export type PaginationProps = ReturnType<typeof usePagination>;
export function Pagination(props: PaginationProps) {
return (