diff options
author | Vendicated <vendicated@riseup.net> | 2022-09-27 16:57:46 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-09-27 16:57:46 +0200 |
commit | 572bfcee6ce343c6bf9d69262576de4e57c01500 (patch) | |
tree | a0cdf027c41152a45183e80344d054071684a064 /src/components/Settings.tsx | |
parent | 6398dd25d20e6bc3e02425b709233066baf64e0c (diff) | |
download | Vencord-572bfcee6ce343c6bf9d69262576de4e57c01500.tar.gz Vencord-572bfcee6ce343c6bf9d69262576de4e57c01500.tar.bz2 Vencord-572bfcee6ce343c6bf9d69262576de4e57c01500.zip |
Fix Settings UI
Diffstat (limited to 'src/components/Settings.tsx')
-rw-r--r-- | src/components/Settings.tsx | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index d5b655b..1950d7a 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -3,10 +3,11 @@ import Plugins from 'plugins'; import { useSettings } from "../api/settings"; import IpcEvents from "../utils/IpcEvents"; -import { Button, ButtonProps, Flex, Switch, Forms, React } from "../webpack/common"; +import { Button, Switch, Forms, React } from "../webpack/common"; import ErrorBoundary from "./ErrorBoundary"; import { startPlugin } from "../plugins"; import { stopPlugin } from '../plugins/index'; +import { Flex } from './Flex'; export default ErrorBoundary.wrap(function Settings(props) { const [settingsDir, , settingsDirPending] = useAwaiter(() => VencordNative.ipc.invoke<string>(IpcEvents.GET_SETTINGS_DIR), "Loading..."); @@ -32,24 +33,20 @@ export default ErrorBoundary.wrap(function Settings(props) { <Forms.FormSection tag="h1" title="Vencord"> <Forms.FormText>SettingsDir: {settingsDir}</Forms.FormText> <Flex style={{ marginTop: "8px", marginBottom: "8px" }}> - <Flex.Child> - <Button - onClick={() => VencordNative.ipc.invoke(IpcEvents.OPEN_PATH, settingsDir)} - size={ButtonProps.ButtonSizes.SMALL} - disabled={settingsDirPending} - > - Launch Directory - </Button> - </Flex.Child> - <Flex.Child> - <Button - onClick={() => VencordNative.ipc.invoke(IpcEvents.OPEN_PATH, settingsDir, "quickCss.css")} - size={ButtonProps.ButtonSizes.SMALL} - disabled={settingsDir === "Loading..."} - > - Open QuickCSS File - </Button> - </Flex.Child> + <Button + onClick={() => VencordNative.ipc.invoke(IpcEvents.OPEN_PATH, settingsDir)} + size={Button.Sizes.SMALL} + disabled={settingsDirPending} + > + Launch Directory + </Button> + <Button + onClick={() => VencordNative.ipc.invoke(IpcEvents.OPEN_PATH, settingsDir, "quickCss.css")} + size={Button.Sizes.SMALL} + disabled={settingsDir === "Loading..."} + > + Open QuickCSS File + </Button> </Flex> <Forms.FormTitle tag="h5">Settings</Forms.FormTitle> <Switch |