From 65605de709975ee63bd72b9e89d2bf6e2269f870 Mon Sep 17 00:00:00 2001 From: abdelmounaim lallouache Date: Sat, 27 Jan 2024 01:04:12 -0600 Subject: [PATCH] updated detail modal --- .../Dashboard/TimeOffRequestDetailModal.jsx | 67 ++++++++++++------- 1 file changed, 44 insertions(+), 23 deletions(-) diff --git a/src/components/Dashboard/TimeOffRequestDetailModal.jsx b/src/components/Dashboard/TimeOffRequestDetailModal.jsx index 60fd79ae3f..19a6ddfb5a 100644 --- a/src/components/Dashboard/TimeOffRequestDetailModal.jsx +++ b/src/components/Dashboard/TimeOffRequestDetailModal.jsx @@ -1,10 +1,9 @@ -import { Modal, ModalHeader, ModalBody } from 'reactstrap'; +import { Modal, ModalHeader, ModalBody, Row, Col } from 'reactstrap'; import moment from 'moment'; import 'moment-timezone'; import { useSelector, useDispatch } from 'react-redux'; import { hideTimeOffRequestModal } from '../../actions/timeOffRequestAction'; - const TimeOffRequestDetailModal = () => { const { isOpen, data } = useSelector(state => state.timeOffRequests.timeOffModal); const dispatch = useDispatch(); @@ -17,27 +16,49 @@ const TimeOffRequestDetailModal = () => { detailModalClose()} returnFocusAfterClose={true}> detailModalClose()}>Time Off Details -

- {data?.onVacation - ? `${data?.name} Is Not Available this Week` - : `${data?.name} Is Not Available Next Week`} -

-
-
Starting from:
-

- {moment(data?.startingDate).format('YYYY-MM-DD')} -

-
-
-
Until:
-

- {moment(data?.endingDate).format('YYYY-MM-DD')} -

-
-
-
For The Following reason:
-

{data?.reason}

-
+ + +

+ {data?.onVacation + ? `${data?.name} Is Not Available this Week` + : `${data?.name} Is Not Available Next Week`} +

+ +
+ + +

+ {data?.onVacation + ? `${data?.name} Is on vacation:` + : `${data?.name} Is going on vacation:`} +

+ +
+ + +

From:

+

+ {moment(data?.startingDate).format('YYYY-MM-DD')} +

+ +
+ {/*
+ +
*/} + + +

To:

+

+ {moment(data?.endingDate).format('YYYY-MM-DD')} +

+ +
+ + +

For The Following reason:

+

{data?.reason}

+ +