src/components/Tag/TagButton.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function TagButton has 51 lines of code (exceeds 25 allowed). Consider refactoring.
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
Severity: Major
Found in src/components/Tag/TagButton.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status