Skip to content

Commit

Permalink
chore: Minor fix in ListTags
Browse files Browse the repository at this point in the history
  • Loading branch information
ape-fede committed Feb 10, 2023
1 parent 8bfc9c3 commit 8c21b5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Tag/ListTag.tsx
Original file line number Diff line number Diff line change
@@ -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<ListTagProps> = ({ variant }) => {
return (
<Flex variant={variant} sx={styles.listTagCont({ variant })}>
<Flex sx={styles.tagText}>
{variant} {(variant === "ape" || variant === "uni" || variant === "ark") && "LP"}
{variant} {lpTags.includes(variant) && "LP"}
</Flex>
</Flex>
);
Expand Down
2 changes: 2 additions & 0 deletions src/components/Tag/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"];

0 comments on commit 8c21b5f

Please sign in to comment.