mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-11 15:43:02 -04:00
build: inject createElement alias (#176)
This commit is contained in:
parent
37105ac416
commit
93859883c1
7 changed files with 40 additions and 22 deletions
|
@ -23,7 +23,6 @@ import { useAwaiter } from "../utils/misc";
|
|||
import { Alerts, Button, Forms, Margins, Parser, React, Switch } from "../webpack/common";
|
||||
import ErrorBoundary from "./ErrorBoundary";
|
||||
import { Flex } from "./Flex";
|
||||
import { launchMonacoEditor } from "./Monaco";
|
||||
|
||||
export default ErrorBoundary.wrap(function Settings() {
|
||||
const [settingsDir, , settingsDirPending] = useAwaiter(() => VencordNative.ipc.invoke<string>(IpcEvents.GET_SETTINGS_DIR), "Loading...");
|
||||
|
@ -85,7 +84,7 @@ export default ErrorBoundary.wrap(function Settings() {
|
|||
</Flex>}
|
||||
|
||||
{IS_WEB && <Button
|
||||
onClick={launchMonacoEditor}
|
||||
onClick={() => require("./Monaco").launchMonacoEditor()}
|
||||
size={Button.Sizes.SMALL}
|
||||
disabled={settingsDir === "Loading..."}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue