From fead7f1bff71473909dc50806bf63be17e79433d Mon Sep 17 00:00:00 2001 From: kieran Date: Fri, 29 Nov 2024 17:38:04 +0000 Subject: [PATCH] fix: icons --- {src => public}/icons.svg | 0 src/components/icon.tsx | 4 +--- src/pages/home.tsx | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) rename {src => public}/icons.svg (100%) diff --git a/src/icons.svg b/public/icons.svg similarity index 100% rename from src/icons.svg rename to public/icons.svg diff --git a/src/components/icon.tsx b/src/components/icon.tsx index 1623e05..58e92cc 100644 --- a/src/components/icon.tsx +++ b/src/components/icon.tsx @@ -1,7 +1,5 @@ import { MouseEventHandler } from "react"; -import Icons from "../icons.svg?url"; - type Props = { name: string; size?: number; @@ -11,7 +9,7 @@ type Props = { export function Icon(props: Props) { const size = props.size || 20; - const href = `${Icons}#${props.name}`; + const href = `/icons.svg#${props.name}`; return ( Speedtest {" "} - | PGP + | PGP