From 789c73536954e7025e6e8b493ca7c4d1f547b7c9 Mon Sep 17 00:00:00 2001 From: Sean King Date: Thu, 23 Jul 2020 22:04:29 -0600 Subject: [PATCH] Fix checked parameter and remove Display name and bio --- app/soapbox/features/configuration/index.js | 30 +++------------------ 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/app/soapbox/features/configuration/index.js b/app/soapbox/features/configuration/index.js index e88b30c70..eb8b57e84 100644 --- a/app/soapbox/features/configuration/index.js +++ b/app/soapbox/features/configuration/index.js @@ -186,25 +186,9 @@ class ConfigSoapbox extends ImmutablePureComponent {
- } - name='display_name' - value={this.state.display_name} - onChange={this.handleTextChange} - /> - } - name='note' - value={this.state.note} - onChange={this.handleTextChange} - />
- if ({this.state.logo}) { - - } else { - - }; + {this.state.logo ? () : ()}
} hint={} name='patron_enabled' - if ({this.state.patronEnabled}) { - checked={this.state.patronEnabled} - } else { - checked={this.props.patronEnabled} - }; + checked={this.state.patronEnabled ? this.state.patronEnabled : this.props.patronEnabled} onChange={this.handleCheckboxChange} /> } hint={} name='auto_play_gif' - if ({this.state.autoPlayGif}) { - checked={this.state.autoPlayGif} - } else { - checked={this.props.autoPlayGif} - }; + checked={this.state.autoPlayGif ? this.state.autoPlayGif : this.props.autoPlayGif} onChange={this.handleCheckboxChange} />