From 78194e135bbd6a14744456a7a75a2be38bdb82c7 Mon Sep 17 00:00:00 2001 From: pheralb Date: Wed, 5 Feb 2025 00:10:29 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Replace=20`getSvgConten?= =?UTF-8?q?t`=20utility=20with=20`getSource`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/svgCard.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/svgCard.svelte b/src/components/svgCard.svelte index 4ac3bcf..5fe4751 100644 --- a/src/components/svgCard.svelte +++ b/src/components/svgCard.svelte @@ -3,7 +3,7 @@ // Utils: import { cn } from '@/utils/cn'; - import { getSvgContent } from '@/utils/getSvgContent'; + import { getSource } from '@/templates/getSource'; // Icons: import { @@ -50,7 +50,9 @@ }); const insertSVG = async (url?: string) => { - const content = (await getSvgContent(url)) as string; + const content = (await getSource({ + url + })) as string; figmaInsertSVG(content); };