fix: icons in src
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
import { MouseEventHandler } from "react";
|
import { MouseEventHandler } from "react";
|
||||||
|
import Icons from "@/icons.svg";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
name: string;
|
name: string;
|
||||||
@ -9,7 +10,7 @@ type Props = {
|
|||||||
|
|
||||||
export function Icon(props: Props) {
|
export function Icon(props: Props) {
|
||||||
const size = props.size || 20;
|
const size = props.size || 20;
|
||||||
const href = `/icons.svg#` + props.name;
|
const href = `${Icons}#` + props.name;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<svg width={size} height={size} className={props.className} onClick={props.onClick}>
|
<svg width={size} height={size} className={props.className} onClick={props.onClick}>
|
||||||
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Reference in New Issue
Block a user