From 44fb448f3a3f76af0ae35d2b04c0841a193f8865 Mon Sep 17 00:00:00 2001 From: srgooglo Date: Tue, 25 Oct 2022 12:07:49 +0000 Subject: [PATCH] split `SettingsFooter` to component --- .../app/src/components/Settings/index.jsx | 75 ++++++++++--------- 1 file changed, 39 insertions(+), 36 deletions(-) diff --git a/packages/app/src/components/Settings/index.jsx b/packages/app/src/components/Settings/index.jsx index 19847625..6a6999da 100755 --- a/packages/app/src/components/Settings/index.jsx +++ b/packages/app/src/components/Settings/index.jsx @@ -24,6 +24,34 @@ const ItemTypes = { SliderColorPicker: SliderPicker, } +const SettingsFooter = () => { + const isDevMode = window.__evite?.env?.NODE_ENV !== "production" + + return
+
+
{config.app?.siteName}
+
+ + v{window.app.version} + +
+
+ + {isDevMode ? : } + {isDevMode ? "development" : "stable"} + +
+
+
+ + + {t => t("about")} + + +
+
+} + const SettingItem = (props) => { let { item } = props @@ -397,42 +425,17 @@ export default class SettingsMenu extends React.PureComponent { } render() { - const isDevMode = window.__evite?.env?.NODE_ENV !== "production" + return
+ + {this.generateSettingsTabs()} + - return ( -
- - {this.generateSettingsTabs()} - -
-
-
{config.app?.siteName}
-
- - v{window.app.version} - -
-
- - {isDevMode ? : } - {isDevMode ? "development" : "stable"} - -
-
-
- - - {t => t("about")} - - -
-
-
- ) + +
} } \ No newline at end of file