From 467a68a958b00310872cd9f15eb7b0af829911ad Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 19 Oct 2024 11:19:50 -0400 Subject: [PATCH] Actually Fix Button --- src/equicordplugins/questCompleter/index.tsx | 46 +++++++------------- src/equicordplugins/questCompleter/style.css | 3 ++ 2 files changed, 19 insertions(+), 30 deletions(-) create mode 100644 src/equicordplugins/questCompleter/style.css diff --git a/src/equicordplugins/questCompleter/index.tsx b/src/equicordplugins/questCompleter/index.tsx index a6781fa6..4479a62d 100644 --- a/src/equicordplugins/questCompleter/index.tsx +++ b/src/equicordplugins/questCompleter/index.tsx @@ -16,33 +16,19 @@ * along with this program. If not, see . */ +import "./style.css"; + import { showNotification } from "@api/Notifications"; import ErrorBoundary from "@components/ErrorBoundary"; import { Devs, EquicordDevs } from "@utils/constants"; import { getTheme, Theme } from "@utils/discord"; import { classes } from "@utils/misc"; import definePlugin from "@utils/types"; -import { findByCode, findByProps, findExportedComponentLazy } from "@webpack"; -import { FluxDispatcher, Forms, RestAPI, Text, UserStore } from "@webpack/common"; - +import { findByProps, findExportedComponentLazy } from "@webpack"; +import { Button, FluxDispatcher, RestAPI, Text, Tooltip, UserStore } from "@webpack/common"; const HeaderBarIcon = findExportedComponentLazy("Icon", "Divider"); const isApp = navigator.userAgent.includes("Electron/"); -const QuestsIcon = () => props => ( - - - -); - function ToolBarQuestsIcon() { return ( - - - - - + + {tooltipProps => ( + + )} + ); }, toolbarAction(e) { diff --git a/src/equicordplugins/questCompleter/style.css b/src/equicordplugins/questCompleter/style.css new file mode 100644 index 00000000..af1bbd0d --- /dev/null +++ b/src/equicordplugins/questCompleter/style.css @@ -0,0 +1,3 @@ +.vc-quest-completer-icon { + background-size: cover; +}