-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3088 from hollaex/develop-fe
User Deletion By Admin
- Loading branch information
Showing
6 changed files
with
98 additions
and
5 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
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,33 @@ | ||
import React from 'react'; | ||
import { Button, Modal } from 'antd'; | ||
import { ReactSVG } from 'react-svg'; | ||
import { STATIC_ICONS } from 'config/icons'; | ||
|
||
const DeletionConfirmation = ({ userData = {}, onConfirm, ...rest }) => ( | ||
<Modal footer={null} width={350} {...rest}> | ||
<div> | ||
<div className="d-flex mb-2"> | ||
<div> | ||
<ReactSVG src={STATIC_ICONS.USER_EMAIL} className={'about-icon'} /> | ||
</div> | ||
<h3 className="ml-3 pt-2" style={{ color: '#ffffff' }}> | ||
User Delete | ||
</h3> | ||
</div> | ||
<div className="mb-4"> | ||
<div className="mb-3"> | ||
<span className="bold">Email:</span> | ||
<span className="pl-2">{userData.email}</span> | ||
</div> | ||
<div>Are you sure you want to delete this user?</div> | ||
</div> | ||
<div> | ||
<Button className="green-btn w-100" onClick={onConfirm}> | ||
Confirm | ||
</Button> | ||
</div> | ||
</div> | ||
</Modal> | ||
); | ||
|
||
export default DeletionConfirmation; |
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