From d3fde729f54317e0d80427aa569f8846b76a609e Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Mon, 9 Aug 2021 09:08:36 +0800 Subject: [PATCH] Handle noDaemon case for App --- ui/page/settings/view.jsx | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/ui/page/settings/view.jsx b/ui/page/settings/view.jsx index 45e61040a..4f2b98d59 100644 --- a/ui/page/settings/view.jsx +++ b/ui/page/settings/view.jsx @@ -39,8 +39,7 @@ class SettingsPage extends React.PureComponent { const { daemonSettings, isAuthenticated } = this.props; const noDaemonSettings = !daemonSettings || Object.keys(daemonSettings).length === 0; - const newStyle = true; - return newStyle ? ( + return ( {!isAuthenticated && IS_WEB && ( <> @@ -60,28 +59,18 @@ class SettingsPage extends React.PureComponent { )} -
- - - - -
-
- ) : ( - {!IS_WEB && noDaemonSettings ? (
{__('Failed to load settings.')}
- ) : null} + ) : ( +
+ + + + +
+ )}
); }