diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Settings.tsx | 4 | ||||
-rw-r--r-- | src/components/Updater.tsx | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index 6c5b501..2a2cc5d 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -72,7 +72,7 @@ export default ErrorBoundary.wrap(function Settings() { SettingsDir: <code style={{ userSelect: "text", cursor: "text" }}>{settingsDir}</code> </Forms.FormText> - {!IS_WEB && <Flex className={classes(Margins.marginBottom20)}> + {!IS_WEB && <Flex className={Margins.marginBottom20}> <Button onClick={() => window.DiscordNative.app.relaunch()} size={Button.Sizes.SMALL} @@ -95,8 +95,8 @@ export default ErrorBoundary.wrap(function Settings() { Open QuickCSS File </Button> </Flex>} + <Forms.FormDivider /> - <Forms.FormTitle tag="h5">Settings</Forms.FormTitle> <Switch value={settings.useQuickCss} onChange={(v: boolean) => settings.useQuickCss = v} diff --git a/src/components/Updater.tsx b/src/components/Updater.tsx index 31060b4..153d5e5 100644 --- a/src/components/Updater.tsx +++ b/src/components/Updater.tsx @@ -158,7 +158,7 @@ function Newer(props: CommonProps) { ); } -export default ErrorBoundary.wrap(function Updater() { +function Updater() { const [repo, err, repoPending] = useAwaiter(getRepo, "Loading..."); React.useEffect(() => { @@ -188,4 +188,6 @@ export default ErrorBoundary.wrap(function Updater() { {isNewer ? <Newer {...commonProps} /> : <Updatable {...commonProps} />} </Forms.FormSection > ); -}); +} + +export default IS_WEB ? null : ErrorBoundary.wrap(Updater); |