From fa4ad21e0a0d0d95b8110f586d201a83e77dd7dc Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 24 Jan 2019 15:07:49 -0600 Subject: [PATCH] Remove dead code for `!withToggleButton` in `ServerConfig` --- .../structures/auth/ForgotPassword.js | 1 - src/components/structures/auth/Login.js | 1 - .../structures/auth/Registration.js | 1 - src/components/views/auth/ServerConfig.js | 48 ++++++++----------- 4 files changed, 20 insertions(+), 31 deletions(-) diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js index 73d9f95e20..1b8b15981b 100644 --- a/src/components/structures/auth/ForgotPassword.js +++ b/src/components/structures/auth/ForgotPassword.js @@ -211,7 +211,6 @@ module.exports = React.createClass({ if (!SdkConfig.get()['disable_custom_urls']) { serverConfigSection = ( - - -    - - - - ); - } + const toggleButton = ( +
+ + +    + + +
+ ); return (
@@ -177,7 +171,6 @@ module.exports = React.createClass({