-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ft-mark-all-notification-as-read (#34) * [#187584881] ft-mark-all-notification-as-read * [#187584881] ft-mark-all-notification-as-read * Requested changes notifications * [start 187584874] seller delete item * [finished 187584874] seller delete item * [finished 187584874] seller delete item * fix profile settings --------- Co-authored-by: Saddock Kabandana <[email protected]>
- Loading branch information
1 parent
8def827
commit 4613391
Showing
13 changed files
with
200 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
@import "./Colors"; | ||
|
||
.confirm-dialog { | ||
margin-left: 27rem; | ||
border-radius: 2.2rem; | ||
margin-top: 9rem; | ||
width: 80%; | ||
height: 87vh; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
background-color: rgba(0, 0, 0, 0.5); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
z-index: 1000; | ||
font-size: 1.6rem; | ||
|
||
.confirm-dialog-content { | ||
background-color: white; | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | ||
text-align: center; | ||
|
||
.modal-header { | ||
font-size: 1.8rem; | ||
font-weight: bold; | ||
margin-bottom: 1.5; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
||
.icon__delete { | ||
color: $red-color; | ||
font-size: 3rem; | ||
} | ||
} | ||
p{ | ||
padding: 1rem 0; | ||
i{ | ||
text-transform: uppercase; | ||
font-weight: bold; | ||
} | ||
} | ||
.modal-footer{ | ||
float: right; | ||
button { | ||
margin: 0 10px; | ||
padding: .7rem 3rem; | ||
border: none; | ||
border-radius: 1rem; | ||
font-family: $text-family; | ||
} | ||
.delete-btn{ | ||
background: $red-middle-color; | ||
color: $red-color; | ||
} | ||
.cancel-btn{ | ||
background: lighten($fifth-color, 19%); | ||
color: $fifth-color; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* eslint-disable */ | ||
import React from 'react'; | ||
import DeleteIcon from '@mui/icons-material/Delete'; | ||
|
||
interface ConfirmModalProps { | ||
isOpen: boolean; | ||
title: string; | ||
message: string; | ||
onConfirm: () => void; | ||
onCancel: () => void; | ||
} | ||
|
||
const ConfirmModal: React.FC<ConfirmModalProps> = ({ isOpen, title, message, onConfirm, onCancel }) => { | ||
if (!isOpen) return null; | ||
|
||
return ( | ||
<div className="confirm-dialog"> | ||
<div className="confirm-dialog-content"> | ||
<div className="modal-header"> | ||
<DeleteIcon className='icon__delete' /> {title} | ||
</div> | ||
<p dangerouslySetInnerHTML={{ __html: message }} /> | ||
<div className="modal-footer"> | ||
<button onClick={onCancel} className='cancel-btn'>Cancel</button> | ||
<button onClick={onConfirm} className='delete-btn'>Delete</button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ConfirmModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.