mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
⚒️ Add .slug.
This commit is contained in:
@@ -44,7 +44,7 @@ const Search = () => {
|
||||
borderWidth="1px"
|
||||
borderRadius="5px"
|
||||
>
|
||||
<Image width="20px" mr="2" src={item.href} alt={item.title} />
|
||||
<Image width="20px" mr="2" src={item.slug} alt={item.title} />
|
||||
<Text>{item.title}</Text>
|
||||
</Flex>
|
||||
</CustomLink>
|
||||
|
||||
@@ -49,7 +49,7 @@ const SVGInfo = (props: SVGCardProps) => {
|
||||
borderRadius="10px"
|
||||
>
|
||||
<Image
|
||||
src={props.href}
|
||||
src={props.slug}
|
||||
alt={props.title}
|
||||
fit="cover"
|
||||
loading="lazy"
|
||||
@@ -63,7 +63,7 @@ const SVGInfo = (props: SVGCardProps) => {
|
||||
variant="ghost"
|
||||
borderWidth="1px"
|
||||
leftIcon={<Copy />}
|
||||
onClick={() => copyToClipboard(props.href)}
|
||||
onClick={() => copyToClipboard(props.slug)}
|
||||
>
|
||||
Copy to clipboard
|
||||
</Button>
|
||||
@@ -72,7 +72,7 @@ const SVGInfo = (props: SVGCardProps) => {
|
||||
leftIcon={<DownloadSimple />}
|
||||
variant="primary"
|
||||
mr="2"
|
||||
onClick={() => downloadSvg(props.href)}
|
||||
onClick={() => downloadSvg(props.slug)}
|
||||
>
|
||||
Download .svg
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user