visible/visible

View on GitHub
packages/@visi/web-client/src/components/ui/switch/switch.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function Switch has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const Switch = (props: SwitchProps) => {
  const { value, disabled, children } = props;
  const [checked, setChecked] = useState(value);

  const handleCheck = () => {
Severity: Major
Found in packages/@visi/web-client/src/components/ui/switch/switch.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status