mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
New svgs, bug fixes & new design page
This commit is contained in:
+2
-2
@@ -39,7 +39,7 @@ export default function Icon() {
|
||||
if (error) return <Error />;
|
||||
if (!data) return <Loader />;
|
||||
|
||||
const downloadSvg = (name, url) => {
|
||||
const downloadSvg = (url) => {
|
||||
confetti({
|
||||
particleCount: 200,
|
||||
startVelocity: 30,
|
||||
@@ -92,7 +92,7 @@ export default function Icon() {
|
||||
variant="primary"
|
||||
fontWeight="light"
|
||||
mr="2"
|
||||
onClick={() => downloadSvg(data.title, data.href)}
|
||||
onClick={() => downloadSvg(data.href)}
|
||||
>
|
||||
Download .svg
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user