|
|
|
@ -27,14 +27,14 @@ function CustomRangeInput({ openCalendar, value }) { |
|
|
|
|
return ( |
|
|
|
|
<div className="flex flex-row items-center "> |
|
|
|
|
<input |
|
|
|
|
className="w-full py-1 text-center text-sm rounded-md border border-gray-200 focus:outline-none focus:border-sky-200 focus:ring-sky-200 focus:ring-1" |
|
|
|
|
className="w-full py-1 text-center text-sm rounded border border-gray-200 focus:outline-none focus:border-[#0074d9] focus:ring-[#0074d9] focus:ring-1" |
|
|
|
|
onFocus={openCalendar} |
|
|
|
|
value={value[0]} |
|
|
|
|
readOnly |
|
|
|
|
/> |
|
|
|
|
<p className="mx-2 text-sm">تا</p> |
|
|
|
|
<input |
|
|
|
|
className="w-full py-1 text-center text-sm rounded-md border border-gray-200 focus:outline-none focus:border-sky-200 focus:ring-sky-200 focus:ring-1" |
|
|
|
|
className="w-full py-1 text-center text-sm rounded border border-gray-200 focus:outline-none focus:border-[#0074d9] focus:ring-[#0074d9] focus:ring-1" |
|
|
|
|
onFocus={openCalendar} |
|
|
|
|
value={value[1]} |
|
|
|
|
readOnly |
|
|
|
@ -42,12 +42,10 @@ function CustomRangeInput({ openCalendar, value }) { |
|
|
|
|
</div> |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const TestComponentNew = () => { |
|
|
|
|
return ( |
|
|
|
|
<div |
|
|
|
|
className="bg-pink-100 w-1/2 mx-auto mt-20" |
|
|
|
|
style={{ direction: "rtl" }} |
|
|
|
|
> |
|
|
|
|
<div className="w-1/2 mx-auto" style={{ direction: "rtl" }}> |
|
|
|
|
<Calendar calendar={persian} locale={persian_fa} /> |
|
|
|
|
<hr className="my-20" /> |
|
|
|
|
<DatePicker |
|
|
|
|