Copy icons.svg

This commit is contained in:
Kieran 2023-07-04 18:34:41 +01:00
parent 15e47bde86
commit 6e90e79ad9
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 2 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -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}>

View File

@ -38,6 +38,7 @@ const config = {
patterns: [
{ from: "public/manifest.json" },
{ from: "public/robots.txt" },
{ from: "public/icons.svg" },
{ from: "_headers" },
],
}),