Skip to content

Commit

Permalink
frick
Browse files Browse the repository at this point in the history
  • Loading branch information
yofukashino committed Mar 25, 2024
1 parent 51844c8 commit fa9ac6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"discordID": "1121961711080050780",
"github": "YofukashiNo"
},
"version": "1.2.4",
"version": "1.2.5",
"updater": {
"type": "store",
"id": "dev.tharki.ReGameActivityToggle"
Expand Down
10 changes: 5 additions & 5 deletions src/Components/AccountDetailsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Check failure on line 13 in src/Components/AccountDetailsButton.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Argument of type 'boolean' is not assignable to parameter of type '(prevState: undefined) => undefined'.
}, [UserSettingStore.getSetting("status", "showCurrentGame")]);
Expand Down Expand Up @@ -49,3 +46,6 @@ export const _addPanelButton = (): React.ReactElement | null => {
/>
);
};
export const _addPanelButton = (): React.ReactElement | null => {
return <GameActivityPanelButton />;
};

0 comments on commit fa9ac6e

Please sign in to comment.