forked from Kieran/zap.stream
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 { MouseEventHandler } from "react";
|
||||||
import IconsSvg from "icons.svg";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
name: string;
|
name: string;
|
||||||
@ -10,7 +9,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 = `${IconsSvg}#` + props.name;
|
const href = `/icons.svg#` + 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}>
|
||||||
|
@ -38,6 +38,7 @@ const config = {
|
|||||||
patterns: [
|
patterns: [
|
||||||
{ from: "public/manifest.json" },
|
{ from: "public/manifest.json" },
|
||||||
{ from: "public/robots.txt" },
|
{ from: "public/robots.txt" },
|
||||||
|
{ from: "public/icons.svg" },
|
||||||
{ from: "_headers" },
|
{ from: "_headers" },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user