Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 3e89773

Browse files
committed
fix: lint
1 parent f3e7d8e commit 3e89773

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/constants/workPeriods.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export const REASON_DISABLED_MESSAGE_MAP = {
150150
[REASON_DISABLED.NO_DAYS_TO_PAY_FOR]: "There are no days to pay for",
151151
[REASON_DISABLED.NO_MEMBER_RATE]: "Member Rate should be greater than 0",
152152
[REASON_DISABLED.NOT_ALLOW_FUTURE_WEEK]:
153-
"Not allow processing payments for the future weeks",
153+
"Not allowed processing payments for the future weeks",
154154
};
155155

156156
export const ALERT_MESSAGE_MAP = {

src/routes/WorkPeriods/components/PeriodListHead/index.jsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import cn from "classnames";
55
import moment from "moment";
66
import Checkbox from "components/Checkbox";
77
import SortingControl from "components/SortingControl";
8-
import { SORT_BY } from "constants/workPeriods";
98
import {
9+
SORT_BY,
1010
REASON_DISABLED,
1111
REASON_DISABLED_MESSAGE_MAP,
12-
} from "constants/workPeriods"
12+
} from "constants/workPeriods";
1313
import {
1414
getWorkPeriodsDateRange,
1515
getWorkPeriodsIsSelectedVisible,
@@ -47,12 +47,12 @@ const PeriodListHead = () => {
4747
dispatch(toggleWorkingPeriodsVisible());
4848
}, [dispatch]);
4949

50-
const reasonsDisabled = useMemo(()=> {
50+
const reasonsDisabled = useMemo(() => {
5151
if (periodsDateRange[0].isAfter(moment())) {
5252
return REASON_DISABLED.NOT_ALLOW_FUTURE_WEEK;
5353
}
54-
return null
55-
}, [periodsDateRange])
54+
return null;
55+
}, [periodsDateRange]);
5656

5757
const reasonsDisabledElement = useMemo(
5858
() => (

0 commit comments

Comments
 (0)