diff --git a/src/components/Tag/ListTag.tsx b/src/components/Tag/ListTag.tsx index 54be815f..d3c3b0ae 100644 --- a/src/components/Tag/ListTag.tsx +++ b/src/components/Tag/ListTag.tsx @@ -1,14 +1,14 @@ /** @jsxImportSource theme-ui */ import React from "react"; import { styles } from "./styles"; -import { ListTagProps } from "./types"; +import { ListTagProps, lpTags } from "./types"; import { Flex } from "../Flex"; const ListTag: React.FC = ({ variant }) => { return ( - {variant} {(variant === "ape" || variant === "uni" || variant === "ark") && "LP"} + {variant} {lpTags.includes(variant) && "LP"} ); diff --git a/src/components/Tag/types.ts b/src/components/Tag/types.ts index af875e0c..5df55d5d 100644 --- a/src/components/Tag/types.ts +++ b/src/components/Tag/types.ts @@ -35,3 +35,5 @@ export type ListTagVariants = typeof listTagVariants[keyof typeof listTagVariant export interface ListTagProps extends SpaceProps { variant: ListTagVariants; } + +export const lpTags = ["ape", "uni", "ark"];