diff --git a/src/components/DateRangePicker/index.js b/src/components/DateRangePicker/index.js index 7681698..9223e2d 100644 --- a/src/components/DateRangePicker/index.js +++ b/src/components/DateRangePicker/index.js @@ -47,9 +47,9 @@ function CustomRangeInput({ openCalendar, value }) { const DateRangePicker = () => { return ( -
- -
+
+ {/* +
*/}
setValue(e.target.value)} - inputMode={type === "number" ? "numeric" : ""} onInput={(e) => { let value = e.target.value; if (type === "number") @@ -60,6 +54,10 @@ const FormFields = ({ if (!isNaN(min) && +e.target.value < min) value = min; e.target.value = value; }} + className={`rtl w-full h-full px-4 py-2 outline-0 text-xs rounded-md text-[#0F0543] focus:bg-white border-[#E0E0E0] focus:border-[#2483E1] focus:ring-transparent + ${value === "" ? "bg-red-200 " : "bg-[#F9F9F9] "} `} + onChange={(e) => setValue(e.target.value)} + inputMode={type === "number" ? "numeric" : ""} /> ) : (