Merge pull request 'Attendence component date customize' (#123) from Kartik_Enhancement#273 into Issue_May_4W

Reviewed-on: #123
This commit is contained in:
Vikas Nale 2025-05-21 07:42:42 +00:00
commit 28e0d615a0

View File

@ -4,8 +4,10 @@ const DateRangePicker = ({ onRangeChange, DateDifference = 7,defaultStartDate =
const inputRef = useRef(null);
useEffect(() => {
const today = defaultStartDate;
const today = new Date();;
today.setDate(today.getDate() - 1);
const fifteenDaysAgo = new Date();
fifteenDaysAgo.setDate(today.getDate() - DateDifference);
const fp = flatpickr(inputRef.current, {