app/javascript/components/Toast.tsx
Function Toast
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);