fix: icons in src
This commit is contained in:
parent
d46e607698
commit
3d1b1bd313
@ -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}>
|
||||
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Loading…
x
Reference in New Issue
Block a user