summaryrefslogtreecommitdiff
path: root/frontend/src/containers/modals/DeleteProfileModal.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/containers/modals/DeleteProfileModal.js')
-rw-r--r--frontend/src/containers/modals/DeleteProfileModal.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/frontend/src/containers/modals/DeleteProfileModal.js b/frontend/src/containers/modals/DeleteProfileModal.js
index 7518c4ba..e7c4014d 100644
--- a/frontend/src/containers/modals/DeleteProfileModal.js
+++ b/frontend/src/containers/modals/DeleteProfileModal.js
@@ -13,15 +13,15 @@ const DeleteProfileModalComponent = ({ visible, callback }) => (
/>
)
-const mapStateToProps = state => {
+const mapStateToProps = (state) => {
return {
visible: state.modals.deleteProfileModalVisible,
}
}
-const mapDispatchToProps = dispatch => {
+const mapDispatchToProps = (dispatch) => {
return {
- callback: isConfirmed => {
+ callback: (isConfirmed) => {
if (isConfirmed) {
dispatch(deleteCurrentUser())
}
@@ -30,8 +30,6 @@ const mapDispatchToProps = dispatch => {
}
}
-const DeleteProfileModal = connect(mapStateToProps, mapDispatchToProps)(
- DeleteProfileModalComponent,
-)
+const DeleteProfileModal = connect(mapStateToProps, mapDispatchToProps)(DeleteProfileModalComponent)
export default DeleteProfileModal