mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
Design improvements
This commit is contained in:
@@ -3,7 +3,6 @@ import useSWR from "swr";
|
||||
import Grid from "components/grid";
|
||||
import Card from "components/card";
|
||||
import Loader from "animations/loader";
|
||||
import { Text } from "@chakra-ui/react";
|
||||
|
||||
const fetcher = (url) => fetch(url).then((res) => res.json());
|
||||
|
||||
@@ -16,13 +15,12 @@ const All = () => {
|
||||
<Grid>
|
||||
{data.map((link) => (
|
||||
<>
|
||||
<div key={link.id}>
|
||||
<Card
|
||||
title={link.title}
|
||||
url={`/icon/${link.id}`}
|
||||
href={link.href}
|
||||
/>
|
||||
</div>
|
||||
<Card
|
||||
key={link.id}
|
||||
title={link.title}
|
||||
url={`/svg/${link.id}`}
|
||||
href={link.href}
|
||||
/>
|
||||
</>
|
||||
))}
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user