From 1e38154e5433eed230cd3458e5aba426ca02b014 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 26 Jun 2023 16:30:02 +0800 Subject: [PATCH] Clean up label styling --- .../web/components/elements/LabelChip.tsx | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/packages/web/components/elements/LabelChip.tsx b/packages/web/components/elements/LabelChip.tsx index ee4544b8c..89b36569b 100644 --- a/packages/web/components/elements/LabelChip.tsx +++ b/packages/web/components/elements/LabelChip.tsx @@ -11,19 +11,14 @@ type LabelChipProps = { color: string // expected to be a RGB hex color string isSelected?: boolean useAppAppearance?: boolean - xAction?: () => void } export function LabelChip(props: LabelChipProps): JSX.Element { - const router = useRouter() const isDark = isDarkTheme() - const luminance = getLuminance(props.color) - const textColor = luminance > 0.5 ? '#000000' : '#ffffff' const selectedBorder = isDark ? '#FFEA9F' : 'black' const unSelectedBorder = isDark ? '#6A6968' : '#D9D9D9' - // if (props.useAppAppearance) { return ( - + {props.text} - {props.xAction && ( - - )} )