src/applications/mhv-supply-reordering/containers/Alerts.jsx
Function Alerts
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Alerts = () => {
const reorderDate = useSelector(canReorderOn);
const renderAlertDeceased = useSelector(showAlertDeceased);
const renderAlertNoRecordForUser = useSelector(showAlertNoRecordForUser);
const renderAlertNoSuppliesForReorder = useSelector(
Avoid too many return
statements within this function. Open
Open
return null;
Avoid too many return
statements within this function. Open
Open
return <AlertNoSuppliesForReorder reorderDate={reorderDate} />;