Untitled
unknown
javascript
a year ago
964 B
9
Indexable
<input
readOnly
value={moment(formData.endDate).format("DD/MM/YYYY")}
type="text"
className="block w-full rounded-md border-0 py-1.5 mt-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-yellow-600 sm:text-sm sm:leading-6"
onClick={() => setEndDateModalOpen(true)}
/>
<CustomCalendarModal
dateValue={formData.endDate}
onModalClose={() => setEndDateModalOpen(false)}
openValue={endDateModalOpen}
onChange={(date) => {
const element = {
target: {
name: "endDate",
value: moment(date).format("YYYY-MM-DD"),
},
};
dispatch(activitiesFormOnChange(element));
}}
/>Editor is loading...
Leave a Comment