Update paginator styles (#142)

* Change paginator icons

* Remove horizontal spacing
This commit is contained in:
arcticfly
2023-08-11 21:11:25 -07:00
committed by GitHub
parent cef2ee31fb
commit 3e02bcf9b8

View File

@@ -1,11 +1,6 @@
import { HStack, IconButton, Text, Select, type StackProps } from "@chakra-ui/react";
import { HStack, IconButton, Text, Select, type StackProps, Icon } from "@chakra-ui/react";
import React, { useCallback } from "react";
import {
BsChevronDoubleLeft,
BsChevronDoubleRight,
BsChevronLeft,
BsChevronRight,
} from "react-icons/bs";
import { FiChevronsLeft, FiChevronsRight, FiChevronLeft, FiChevronRight } from "react-icons/fi";
import { usePageParams } from "~/utils/hooks";
const pageSizeOptions = [10, 25, 50, 100];
@@ -45,7 +40,6 @@ const Paginator = ({
return (
<HStack
pt={4}
px={4}
spacing={8}
justifyContent={condense ? "flex-start" : "space-between"}
alignItems="center"
@@ -81,7 +75,7 @@ const Paginator = ({
onClick={goToFirstPage}
isDisabled={page === 1}
aria-label="Go to first page"
icon={<BsChevronDoubleLeft />}
icon={<Icon as={FiChevronsLeft} boxSize={5} strokeWidth={1.5} />}
/>
<IconButton
variant="outline"
@@ -89,7 +83,7 @@ const Paginator = ({
onClick={prevPage}
isDisabled={page === 1}
aria-label="Previous page"
icon={<BsChevronLeft />}
icon={<Icon as={FiChevronLeft} boxSize={5} strokeWidth={1.5} />}
/>
{condense && (
<Text>
@@ -102,7 +96,7 @@ const Paginator = ({
onClick={nextPage}
isDisabled={page === lastPage}
aria-label="Next page"
icon={<BsChevronRight />}
icon={<Icon as={FiChevronRight} boxSize={5} strokeWidth={1.5} />}
/>
<IconButton
variant="outline"
@@ -110,7 +104,7 @@ const Paginator = ({
onClick={goToLastPage}
isDisabled={page === lastPage}
aria-label="Go to last page"
icon={<BsChevronDoubleRight />}
icon={<Icon as={FiChevronsRight} boxSize={5} strokeWidth={1.5} />}
/>
</HStack>
</HStack>