Refactor_Expenses #321

Merged
pramod.mahajan merged 249 commits from Refactor_Expenses into hotfix/MasterActivity 2025-08-01 13:14:59 +00:00
Showing only changes of commit 6b6ec37da4 - Show all commits

View File

@ -28,9 +28,9 @@ const DateRangePicker = ({
altFormat: "d-m-Y", altFormat: "d-m-Y",
defaultDate: [startDate, endDate], defaultDate: [startDate, endDate],
static: false, static: false,
appendTo: document.body, // appendTo: document.body,
clickOpens: true, clickOpens: true,
maxDate: endDate, // Disable future dates maxDate: endDate,
onChange: (selectedDates, dateStr) => { onChange: (selectedDates, dateStr) => {
const [startDateString, endDateString] = dateStr.split(" To "); const [startDateString, endDateString] = dateStr.split(" To ");
onRangeChange?.({ startDate: startDateString, endDate: endDateString }); onRangeChange?.({ startDate: startDateString, endDate: endDateString });
@ -51,23 +51,15 @@ const DateRangePicker = ({
<div className={`col-${sm} col-sm-${md} px-1 position-relative`}> <div className={`col-${sm} col-sm-${md} px-1 position-relative`}>
<input <input
type="text" type="text"
className="form-control form-control-sm ps-2 pe-5 " className="form-control form-control-sm ps-2 pe-5 me-4"
placeholder="From to End" placeholder="From to End"
id="flatpickr-range" id="flatpickr-range"
ref={inputRef} ref={inputRef}
/> />
<i <i
className="bx bx-calendar calendar-icon cursor-pointer" className="bx bx-calendar calendar-icon cursor-pointer position-absolute top-50 translate-middle-y "
style={{ style={{right:"12px"}}
position: "absolute",
top: "50%",
right: "12px",
transform: "translateY(-50%)",
color: "#6c757d",
fontSize: "1.1rem",
}}
></i> ></i>
</div> </div>