src/hooks/useAlarms.ts

Summary

Maintainability
A
1 hr
Test Coverage
F
25%

Function useAlarms has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function useAlarms(): useAlarmsReturn {
  const [alarms, _setAlarms] = useRecoilState<Alarm[]>(alarmState)
  const [alarmRules] = useStorage<AlarmRule[]>(STORAGE_KEY.ALARMS)

  const setAlarms = useCallback(
Severity: Minor
Found in src/hooks/useAlarms.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status