diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-06 22:07:16 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:57 +0200 |
| commit | d5a92d3006561fd631279b68b23a1f8075b28bb8 (patch) | |
| tree | 39797ed1e314e5e3cd8521239141af1334f18ec5 /src/containers/modals/DeleteProfileModal.js | |
| parent | 02eafd26b8841ed5896ab83672aba13d569ea63d (diff) | |
Add a button to delete the currently viewed room
Diffstat (limited to 'src/containers/modals/DeleteProfileModal.js')
| -rw-r--r-- | src/containers/modals/DeleteProfileModal.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/containers/modals/DeleteProfileModal.js b/src/containers/modals/DeleteProfileModal.js index 0108a1eb..709b4a92 100644 --- a/src/containers/modals/DeleteProfileModal.js +++ b/src/containers/modals/DeleteProfileModal.js @@ -4,9 +4,9 @@ import {closeDeleteProfileModal} from "../../actions/modals/profile"; import {deleteCurrentUser} from "../../actions/users"; import ConfirmationModal from "../../components/modals/ConfirmationModal"; -const NewSimulationModalComponent = ({visible, callback}) => ( +const DeleteProfileModalComponent = ({visible, callback}) => ( <ConfirmationModal title="Delete my account" - message="Are you sure you want do delete your OpenDC account?" + message="Are you sure you want to delete your OpenDC account?" show={visible} callback={callback}/> ); @@ -28,9 +28,9 @@ const mapDispatchToProps = dispatch => { }; }; -const NewSimulationModal = connect( +const DeleteProfileModal = connect( mapStateToProps, mapDispatchToProps -)(NewSimulationModalComponent); +)(DeleteProfileModalComponent); -export default NewSimulationModal; +export default DeleteProfileModal; |
