From fa9ac6e3709a36042026ffd99de16d047acaef8c Mon Sep 17 00:00:00 2001 From: Tharki-God Date: Mon, 25 Mar 2024 18:47:42 +0530 Subject: [PATCH] frick --- manifest.json | 2 +- src/Components/AccountDetailsButton.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 5e7a60c..9bfe10a 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "discordID": "1121961711080050780", "github": "YofukashiNo" }, - "version": "1.2.4", + "version": "1.2.5", "updater": { "type": "store", "id": "dev.tharki.ReGameActivityToggle" diff --git a/src/Components/AccountDetailsButton.tsx b/src/Components/AccountDetailsButton.tsx index 9f65467..4ddd20f 100644 --- a/src/Components/AccountDetailsButton.tsx +++ b/src/Components/AccountDetailsButton.tsx @@ -7,11 +7,8 @@ import UserSettingStore from "../lib/UserSettingStore"; import Icons from "../Components/Icons"; import SpotifyAccountsContextMenu from "./ContextMenu"; import Utils from "../lib/utils"; - -export const _addPanelButton = (): React.ReactElement | null => { - const [enabled, setEnabled] = React.useState( - UserSettingStore.getSetting("status", "showCurrentGame"), - ); +export const GameActivityPanelButton = (): React.ReactElement | null => { + const [enabled, setEnabled] = React.useState(); React.useEffect(() => { setEnabled(UserSettingStore.getSetting("status", "showCurrentGame")); }, [UserSettingStore.getSetting("status", "showCurrentGame")]); @@ -49,3 +46,6 @@ export const _addPanelButton = (): React.ReactElement | null => { /> ); }; +export const _addPanelButton = (): React.ReactElement | null => { + return ; +};