fix: icons in src

This commit is contained in:
Kieran 2024-03-05 16:39:06 +00:00
parent d46e607698
commit 3d1b1bd313
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import { MouseEventHandler } from "react";
import Icons from "@/icons.svg";
type Props = {
name: string;
@ -9,7 +10,7 @@ type Props = {
export function Icon(props: Props) {
const size = props.size || 20;
const href = `/icons.svg#` + props.name;
const href = `${Icons}#` + props.name;
return (
<svg width={size} height={size} className={props.className} onClick={props.onClick}>

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB