⚒️ Fix design bug.

This commit is contained in:
pheralb 2022-07-24 23:40:28 +01:00
parent 2cd7c66462
commit 38077911b7

View File

@ -4,6 +4,7 @@ import { getCategorySvgs } from "@/services";
import CustomLink from "@/common/link";
import { Box } from "@chakra-ui/react";
import { RaceBy } from "@uiball/loaders";
import Tap from "@/animations/tap";
const Categories = () => {
const { data, error } = useSWR(getCategorySvgs);
@ -15,9 +16,13 @@ const Categories = () => {
return (
<>
{data.map((category: string) => (
<Box key={category} p="4" borderRadius="5px" borderWidth="1px">
<CustomLink href={`/category/${category}`}>{category}</CustomLink>
<Tap key={category}>
<CustomLink href={`/category/${category}`}>
<Box p="4" borderRadius="5px" borderWidth="1px">
{category}
</Box>
</CustomLink>
</Tap>
))}
</>
);