This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 2 files changed +6
-6
lines changed
routes/WorkPeriods/components/PeriodListHead
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ export const REASON_DISABLED_MESSAGE_MAP = {
150
150
[ REASON_DISABLED . NO_DAYS_TO_PAY_FOR ] : "There are no days to pay for" ,
151
151
[ REASON_DISABLED . NO_MEMBER_RATE ] : "Member Rate should be greater than 0" ,
152
152
[ REASON_DISABLED . NOT_ALLOW_FUTURE_WEEK ] :
153
- "Not allow processing payments for the future weeks" ,
153
+ "Not allowed processing payments for the future weeks" ,
154
154
} ;
155
155
156
156
export const ALERT_MESSAGE_MAP = {
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ import cn from "classnames";
5
5
import moment from "moment" ;
6
6
import Checkbox from "components/Checkbox" ;
7
7
import SortingControl from "components/SortingControl" ;
8
- import { SORT_BY } from "constants/workPeriods" ;
9
8
import {
9
+ SORT_BY ,
10
10
REASON_DISABLED ,
11
11
REASON_DISABLED_MESSAGE_MAP ,
12
- } from "constants/workPeriods"
12
+ } from "constants/workPeriods" ;
13
13
import {
14
14
getWorkPeriodsDateRange ,
15
15
getWorkPeriodsIsSelectedVisible ,
@@ -47,12 +47,12 @@ const PeriodListHead = () => {
47
47
dispatch ( toggleWorkingPeriodsVisible ( ) ) ;
48
48
} , [ dispatch ] ) ;
49
49
50
- const reasonsDisabled = useMemo ( ( ) => {
50
+ const reasonsDisabled = useMemo ( ( ) => {
51
51
if ( periodsDateRange [ 0 ] . isAfter ( moment ( ) ) ) {
52
52
return REASON_DISABLED . NOT_ALLOW_FUTURE_WEEK ;
53
53
}
54
- return null
55
- } , [ periodsDateRange ] )
54
+ return null ;
55
+ } , [ periodsDateRange ] ) ;
56
56
57
57
const reasonsDisabledElement = useMemo (
58
58
( ) => (
You can’t perform that action at this time.
0 commit comments