src/components/Tag/TagButton.tsx
Function TagButton
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const TagButton = (props: TagButtonProps): JSX.Element => {
const tag = props.tag
const { tags } = useTagHistory()
const tagRecord = tags.find((t) => t.name === tag.name)
const initialBg = tagRecord?.colorHex || COLOR.Gray200