src/applications/mhv-medical-records/hooks/use-alerts.js
Function useAlerts
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useAlerts = dispatch => {
const alertList = useSelector(state => state.mr.alerts?.alertList);
const [activeAlert, setActiveAlert] = useState();
useEffect(