@@ -12,7 +12,6 @@ import {
1212 hideWorkPeriodDetails ,
1313 setBillingAccount ,
1414 setDetailsHidePastPeriods ,
15- // setDetailsLockWorkingDays,
1615} from "store/actions/workPeriods" ;
1716import styles from "./styles.module.scss" ;
1817import { updateWorkPeriodBillingAccount } from "store/thunks/workPeriods" ;
@@ -42,7 +41,6 @@ const PeriodDetails = ({ className, details, isDisabled, isFailed }) => {
4241 periodsVisible,
4342 periodsIsLoading,
4443 hidePastPeriods,
45- // lockWorkingDays,
4644 } = details ;
4745
4846 const onHideDetailsBtnClick = useCallback ( ( ) => {
@@ -56,13 +54,6 @@ const PeriodDetails = ({ className, details, isDisabled, isFailed }) => {
5654 [ dispatch , periodId ]
5755 ) ;
5856
59- // const onChangeLockWorkingDays = useCallback(
60- // (lock) => {
61- // dispatch(setDetailsLockWorkingDays(periodId, lock));
62- // },
63- // [dispatch, periodId]
64- // );
65-
6657 const onChangeBillingAccount = useCallback (
6758 ( value ) => {
6859 dispatch ( setBillingAccount ( periodId , value ) ) ;
@@ -113,16 +104,6 @@ const PeriodDetails = ({ className, details, isDisabled, isFailed }) => {
113104 </ div >
114105 </ div >
115106 </ div >
116- { /* <div className={styles.lockWorkingDaysSection}>
117- <div className={styles.sectionLabel}>Lock Working Days</div>
118- <Toggle
119- size="small"
120- className={styles.lockWorkingDaysToggle}
121- name={`rb_lck_wd_${periodId}`}
122- onChange={onChangeLockWorkingDays}
123- isOn={lockWorkingDays}
124- />
125- </div> */ }
126107 < div className = { styles . billingAccountSection } >
127108 < div className = { styles . sectionLabel } > Billing Account</ div >
128109 < SelectField
@@ -188,7 +169,7 @@ PeriodDetails.propTypes = {
188169 billingAccounts : PT . arrayOf (
189170 PT . shape ( {
190171 label : PT . string . isRequired ,
191- value : PT . string . isRequired ,
172+ value : PT . number . isRequired ,
192173 } )
193174 ) ,
194175 billingAccountsError : PT . string ,
@@ -197,7 +178,6 @@ PeriodDetails.propTypes = {
197178 periodsVisible : PT . array . isRequired ,
198179 periodsIsLoading : PT . bool . isRequired ,
199180 hidePastPeriods : PT . bool . isRequired ,
200- lockWorkingDays : PT . bool . isRequired ,
201181 } ) . isRequired ,
202182 isDisabled : PT . bool . isRequired ,
203183 isFailed : PT . bool . isRequired ,
0 commit comments