diff options
author | Vendicated <vendicated@riseup.net> | 2023-03-04 18:40:37 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-03-04 18:41:32 +0100 |
commit | cab72e1be627fb7cb06725d0a3e262e214de170f (patch) | |
tree | dcd1daddf420be1bad26955d15ec4ea9ec65abfb /src/components/PluginSettings | |
parent | 92372bde1d422e2daf2e24dd05ae5f4d73f5ebcb (diff) | |
download | Vencord-cab72e1be627fb7cb06725d0a3e262e214de170f.tar.gz Vencord-cab72e1be627fb7cb06725d0a3e262e214de170f.tar.bz2 Vencord-cab72e1be627fb7cb06725d0a3e262e214de170f.zip |
Strongly type useSettings (supersedes #559)
Diffstat (limited to 'src/components/PluginSettings')
-rw-r--r-- | src/components/PluginSettings/index.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index 3d69a60..02d89f8 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -93,7 +93,7 @@ interface PluginCardProps extends React.HTMLProps<HTMLDivElement> { } function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLeave, isNew }: PluginCardProps) { - const settings = useSettings([`plugins.${plugin.name}`]).plugins[plugin.name]; + const settings = useSettings([`plugins.${plugin.name}.enabled`]).plugins[plugin.name]; const isEnabled = () => settings.enabled ?? false; |