diff options
author | Ven <vendicated@riseup.net> | 2022-11-01 01:49:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 01:49:41 +0100 |
commit | 04d6f341ee3122e36044739d533a69e4312dd116 (patch) | |
tree | 971e61d6ee490ec02a682b7d6fa68bb08cffe68a /src/components/PluginSettings/index.tsx | |
parent | 0c25278c5923ff7fdc22730557da00601b8cf1d3 (diff) | |
download | Vencord-04d6f341ee3122e36044739d533a69e4312dd116.tar.gz Vencord-04d6f341ee3122e36044739d533a69e4312dd116.tar.bz2 Vencord-04d6f341ee3122e36044739d533a69e4312dd116.zip |
PatchHelper, a tool to help you write patches (#182)
Diffstat (limited to 'src/components/PluginSettings/index.tsx')
-rw-r--r-- | src/components/PluginSettings/index.tsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index 9ab1396..a5116c4 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -220,11 +220,6 @@ export default ErrorBoundary.wrap(function Settings() { return o; }, []); - function hasDependents(plugin: Plugin) { - const enabledDependants = depMap[plugin.name]?.filter(d => settings.plugins[d].enabled); - return !!enabledDependants?.length; - } - const sortedPlugins = React.useMemo(() => Object.values(Plugins) .sort((a, b) => a.name.localeCompare(b.name)), []); @@ -264,7 +259,7 @@ export default ErrorBoundary.wrap(function Settings() { { label: "Show Enabled", value: "enabled" }, { label: "Show Disabled", value: "disabled" } ]} - serialize={v => String(v)} + serialize={String} select={onStatusChange} isSelected={v => v === searchValue.status} closeOnSelect={true} |