diff --git a/src/renderer/coremods/settings/icons/Close.tsx b/src/renderer/coremods/settings/icons/Close.tsx new file mode 100644 index 000000000..013f7499c --- /dev/null +++ b/src/renderer/coremods/settings/icons/Close.tsx @@ -0,0 +1,7 @@ +import { MouseEventHandler } from "react"; + +export default (props: { onClick?: MouseEventHandler }): React.ReactElement => ( + + + +) diff --git a/src/renderer/coremods/settings/icons/Popout.tsx b/src/renderer/coremods/settings/icons/Popout.tsx new file mode 100644 index 000000000..419028b63 --- /dev/null +++ b/src/renderer/coremods/settings/icons/Popout.tsx @@ -0,0 +1,7 @@ +import { MouseEventHandler } from "react"; + +export default (props: { onClick?: MouseEventHandler }): React.ReactElement => ( + + + +); diff --git a/src/renderer/coremods/settings/icons/Settings.tsx b/src/renderer/coremods/settings/icons/Settings.tsx index efe9d358b..b2e701fc7 100644 --- a/src/renderer/coremods/settings/icons/Settings.tsx +++ b/src/renderer/coremods/settings/icons/Settings.tsx @@ -1,5 +1,7 @@ -export default (): React.ReactElement => ( - +import { MouseEventHandler } from "react"; + +export default (props: { onClick?: MouseEventHandler }): React.ReactElement => ( + {/* Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. */} diff --git a/src/renderer/coremods/settings/icons/index.ts b/src/renderer/coremods/settings/icons/index.ts index e6c8be8d6..db6583a38 100644 --- a/src/renderer/coremods/settings/icons/index.ts +++ b/src/renderer/coremods/settings/icons/index.ts @@ -4,6 +4,8 @@ import Link from "./Link"; import Reload from "./Reload"; import Settings from "./Settings"; import Trash from "./Trash"; +import Close from "./Close"; +import Popout from "./Popout"; export default { Discord, @@ -12,4 +14,6 @@ export default { Reload, Settings, Trash, + Close, + Popout, }; diff --git a/src/renderer/coremods/settings/pages/QuickCSS.tsx b/src/renderer/coremods/settings/pages/QuickCSS.tsx index a06f0c7b8..e29dff8cc 100644 --- a/src/renderer/coremods/settings/pages/QuickCSS.tsx +++ b/src/renderer/coremods/settings/pages/QuickCSS.tsx @@ -10,6 +10,9 @@ import "./QuickCSS.css"; import { generalSettings } from "./General"; import { ReactComponent } from "src/types"; import { Store } from "@common/flux"; +import Settings from "../icons/Settings"; +import Close from "../icons/Close"; +import Popout from "../icons/Popout"; const { connectStores } = flux; @@ -245,48 +248,26 @@ const QuickCSS = (props: { popout: boolean } & Record): React.R
- {}}> - - + {!props.popout ? ( - { - openPopout( - "DISCORD_REPLUGGED_QUICKCSS", - () => ( - - - - ), - {}, - ); - }}> - - + { + openPopout( + "DISCORD_REPLUGGED_QUICKCSS", + () => ( + + + + ), + {}, + ); + }} /> ) : ( - { - closePopout("DISCORD_REPLUGGED_QUICKCSS"); - }}> - - - - + { + closePopout("DISCORD_REPLUGGED_QUICKCSS"); + }} /> )}