calendar range days
This commit is contained in:
parent
58b8119569
commit
ff2bd020e8
@ -43,7 +43,7 @@ export const ProfileCalendar = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toggleStartRangeDays() {
|
function toggleStartRangeDays() {
|
||||||
setStartRangeDays(!startRangeDays)
|
setStartRangeDays(!startRangeDays);
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -31,7 +31,14 @@ import rectangle from "assets/images/rectangle__calendar.png";
|
|||||||
|
|
||||||
// eslint-disable-next-line react/display-name
|
// eslint-disable-next-line react/display-name
|
||||||
export const ProfileCalendarComponent = React.memo(
|
export const ProfileCalendarComponent = React.memo(
|
||||||
({ value, setValueHandler, reports, totalHours, startRangeDays, toggleRangeDays }) => {
|
({
|
||||||
|
value,
|
||||||
|
setValueHandler,
|
||||||
|
reports,
|
||||||
|
totalHours,
|
||||||
|
startRangeDays,
|
||||||
|
toggleRangeDays,
|
||||||
|
}) => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
|
||||||
const [currentDay] = useState(moment());
|
const [currentDay] = useState(moment());
|
||||||
|
Loading…
Reference in New Issue
Block a user