From 8035048ca4a3b25a320fa30b63590b1db8f3624d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 20 Apr 2020 18:52:33 -0500 Subject: [PATCH] Add modal confirmation settings --- app/gabsocial/features/preferences/index.js | 53 +++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/app/gabsocial/features/preferences/index.js b/app/gabsocial/features/preferences/index.js index 293da6e1a..30844deed 100644 --- a/app/gabsocial/features/preferences/index.js +++ b/app/gabsocial/features/preferences/index.js @@ -58,12 +58,20 @@ class Preferences extends ImmutablePureComponent { dispatch(changeSetting(['defaultPrivacy'], e.target.value)); } + handleCheckboxSetting = path => { + const { dispatch } = this.props; + return (e) => { + dispatch(changeSetting(path, e.target.checked)); + }; + } + render() { const { settings, intl } = this.props; return (
+
@@ -86,6 +94,7 @@ class Preferences extends ImmutablePureComponent {
+
@@ -113,6 +122,50 @@ class Preferences extends ImmutablePureComponent {
+ +
+ +
+
+ +
+ +
+
+
+ +
+
+ +
+ +
+
+
+ +
+
+ +
+ +
+
+
+ +
+
);