mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-10 14:46:54 +08:00
⚒️ Fix design bug.
This commit is contained in:
parent
2cd7c66462
commit
38077911b7
@ -4,6 +4,7 @@ import { getCategorySvgs } from "@/services";
|
|||||||
import CustomLink from "@/common/link";
|
import CustomLink from "@/common/link";
|
||||||
import { Box } from "@chakra-ui/react";
|
import { Box } from "@chakra-ui/react";
|
||||||
import { RaceBy } from "@uiball/loaders";
|
import { RaceBy } from "@uiball/loaders";
|
||||||
|
import Tap from "@/animations/tap";
|
||||||
|
|
||||||
const Categories = () => {
|
const Categories = () => {
|
||||||
const { data, error } = useSWR(getCategorySvgs);
|
const { data, error } = useSWR(getCategorySvgs);
|
||||||
@ -15,9 +16,13 @@ const Categories = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{data.map((category: string) => (
|
{data.map((category: string) => (
|
||||||
<Box key={category} p="4" borderRadius="5px" borderWidth="1px">
|
<Tap key={category}>
|
||||||
<CustomLink href={`/category/${category}`}>{category}</CustomLink>
|
<CustomLink href={`/category/${category}`}>
|
||||||
</Box>
|
<Box p="4" borderRadius="5px" borderWidth="1px">
|
||||||
|
{category}
|
||||||
|
</Box>
|
||||||
|
</CustomLink>
|
||||||
|
</Tap>
|
||||||
))}
|
))}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user