fix: icons
This commit is contained in:
parent
658e4aa5f2
commit
fead7f1bff
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@ -1,7 +1,5 @@
|
|||||||
import { MouseEventHandler } from "react";
|
import { MouseEventHandler } from "react";
|
||||||
|
|
||||||
import Icons from "../icons.svg?url";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
name: string;
|
name: string;
|
||||||
size?: number;
|
size?: number;
|
||||||
@ -11,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 = `${Icons}#${props.name}`;
|
const href = `/icons.svg#${props.name}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
|
@ -34,7 +34,7 @@ export default function HomePage() {
|
|||||||
<a target="_blank" href="http://speedtest.v0l.io">
|
<a target="_blank" href="http://speedtest.v0l.io">
|
||||||
Speedtest
|
Speedtest
|
||||||
</a>{" "}
|
</a>{" "}
|
||||||
| <a href="/public/lnvps.asc">PGP</a>
|
| <a href="/lnvps.asc">PGP</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user