Copy icons.svg
This commit is contained in:
parent
15e47bde86
commit
6e90e79ad9
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
@ -1,5 +1,4 @@
|
||||
import { MouseEventHandler } from "react";
|
||||
import IconsSvg from "icons.svg";
|
||||
|
||||
type Props = {
|
||||
name: string;
|
||||
@ -10,7 +9,7 @@ type Props = {
|
||||
|
||||
export function Icon(props: Props) {
|
||||
const size = props.size || 20;
|
||||
const href = `${IconsSvg}#` + props.name;
|
||||
const href = `/icons.svg#` + props.name;
|
||||
|
||||
return (
|
||||
<svg width={size} height={size} className={props.className} onClick={props.onClick}>
|
||||
|
@ -38,6 +38,7 @@ const config = {
|
||||
patterns: [
|
||||
{ from: "public/manifest.json" },
|
||||
{ from: "public/robots.txt" },
|
||||
{ from: "public/icons.svg" },
|
||||
{ from: "_headers" },
|
||||
],
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user