web: name the fallback icon pigTail and require an icon type
This commit is contained in:
1 file changed
+2
-2
@@ -5,7 +5,7 @@ import styles from "./icon.module.scss";
|
|||||||
export function Icon({
|
export function Icon({
|
||||||
type,
|
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 (
|
return (
|
||||||
<span className={styles.icon}>
|
<span className={styles.icon}>
|
||||||
@@ -91,7 +91,7 @@ export function Icon({
|
|||||||
</svg>
|
</svg>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{!type && (
|
{type === "pigTail" && (
|
||||||
<span>
|
<span>
|
||||||
<svg
|
<svg
|
||||||
viewBox="0 0 49 49"
|
viewBox="0 0 49 49"
|
||||||
|
|||||||
Reference in new issue
Block a user