anyone-oslo/pages

View on GitHub
app/javascript/components/Toast.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function Toast has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function Toast(props: Props) {
  const [fadeout, setFadeout] = useState(false);
  const { toasts, error, notice, next } = useToastStore((state) => state);
  const timerRef = useRef<number | null>(null);

Severity: Minor
Found in app/javascript/components/Toast.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status