Adding Date Box in Check-in and Check-out popup from Attendence component.
This commit is contained in:
parent
0587351cdb
commit
f01a6235e7
@ -21,6 +21,7 @@ const CheckCheckOutmodel = ({ modeldata, closeModal, handleSubmitForm, }) => {
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const coords = usePositionTracker();
|
||||
const dispatch = useDispatch()
|
||||
const today = new Date().toISOString().split('T')[0];
|
||||
|
||||
const {
|
||||
register,
|
||||
@ -72,7 +73,21 @@ const CheckCheckOutmodel = ({ modeldata, closeModal, handleSubmitForm, }) => {
|
||||
{modeldata?.checkInTime && !modeldata?.checkOutTime ? 'Check-out :' : 'Check-in :'}
|
||||
</label>
|
||||
</div>
|
||||
<div className="col-12 col-md-12">
|
||||
|
||||
<div className="col-6 col-md-6 ">
|
||||
<label className="form-label" htmlFor="checkInDate">
|
||||
{modeldata?.checkInTime && !modeldata?.checkOutTime ? 'Check-out Date' : 'Check-in Date'}
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
id="checkInDate"
|
||||
className="form-control"
|
||||
value={today}
|
||||
disabled
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="col-6 col-md-6">
|
||||
<TimePicker
|
||||
label="Choose a time"
|
||||
onChange={(e) => setValue("markTime", e)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user