mirror of
https://github.com/pheralb/svgl.git
synced 2025-03-13 00:20:34 +08:00
🛠️ Replace getSvgContent
utility with getSource
This commit is contained in:
parent
e4c573fee8
commit
78194e135b
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user