web: name the fallback icon pigTail and require an icon type

This commit is contained in:
ponas committed 2026-10-14 01:36:40 +02:00
1 parent a005cb2a34
commit 19cf80c657
1 file changed
+2 -2
+2 -2
View File
@@ -5,7 +5,7 @@ import styles from "./icon.module.scss";
export function Icon({
type,
}: {
type?: "doc" | "arrowUp" | "arrowRight" | "externalLink" | "search" | "tickets" | "list" | "calendar" | "filter" | "noFilter" | "email" | "phone" | "instagram" | "facebook" | "flickr" | "tiktok";
type: "doc" | "arrowUp" | "arrowRight" | "externalLink" | "search" | "tickets" | "list" | "calendar" | "filter" | "noFilter" | "email" | "phone" | "instagram" | "facebook" | "flickr" | "tiktok" | "pigTail";
}) {
return (
<span className={styles.icon}>
@@ -91,7 +91,7 @@ export function Icon({
</svg>
)}
{!type && (
{type === "pigTail" && (
<span>
<svg
viewBox="0 0 49 49"