Compare commits

...

3 Commits

Author SHA1 Message Date
Pramod Mahajan
1598842436 modified delete modal msg 2025-05-07 17:19:41 +05:30
Pramod Mahajan
71bb1c25dd changed position of header 2025-05-07 17:18:57 +05:30
Pramod Mahajan
00c56788ed removed directory menu 2025-05-07 17:14:30 +05:30
3 changed files with 9 additions and 10 deletions

View File

@ -162,7 +162,7 @@ const WorkItem = ({ workItem, forBuilding, forFloor, forWorkArea }) => {
style={{ display: showModal2 ? "block" : "none" }}
aria-hidden='false'
>
<ConfirmModal type={"delete"} header={"Delete Activity"} message={"Are you sure you want delete"} onSubmit={ handleSubmit} onClose={closeModalDelete} loading={loadingDelete}/>
<ConfirmModal type={"delete"} header={"Delete Activity"} message={"Are you sure you want delete?"} onSubmit={ handleSubmit} onClose={closeModalDelete} loading={loadingDelete}/>
</div> }
<tr>

View File

@ -28,16 +28,19 @@ const ConfirmModal = ({ type, onSubmit, onClose, message, loading ,header}) => {
<div className="modal-content">
<div className="modal-body">
<div className="row">
<div className="text-start mb-1">
<div className=' d-flex justify-content-between mb-4'>
{header && < strong className='mb-0 font-weight-bold'>{header }</strong>}
<button
type="button"
className="btn-close"
aria-label="Close"
onClick={onClose}
/>
<div className="text-start mb-1">
</div>
{header && < strong className='mb-0 font-weight-bold'>{header }</strong>}
<div className='row'>
<div className='col-4 col-sm-2'> {TypeofIcon(type)}</div>
<div className='col-8 col-sm-10 py-sm-2 py-1 text-sm-end'>
@ -55,7 +58,7 @@ const ConfirmModal = ({ type, onSubmit, onClose, message, loading ,header}) => {
onClick={onClose}
disabled={loading}
>
Cancel
No
</button>
</div>
</div>

View File

@ -24,11 +24,7 @@
"available": true,
"link": "/employees"
},
{
"text": "Directory",
"available": true,
"link": "/directory"
},
{
"text": "Project Status",
"available": true,