fix: add keys to plugins grid (#237)

This commit is contained in:
megumin 2022-11-21 17:45:22 +00:00 committed by GitHub
parent c45d89697a
commit bfe1fd9912
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -278,6 +278,7 @@ export default ErrorBoundary.wrap(function Settings() {
onRestartNeeded={name => changes.add(name)} onRestartNeeded={name => changes.add(name)}
disabled={plugin.required || !!dependency} disabled={plugin.required || !!dependency}
plugin={plugin} plugin={plugin}
key={plugin.name}
/>; />;
}) })
: <Text variant="text-md/normal">No plugins meet search criteria.</Text> : <Text variant="text-md/normal">No plugins meet search criteria.</Text>
@ -296,7 +297,7 @@ export default ErrorBoundary.wrap(function Settings() {
const tooltipText = plugin.required const tooltipText = plugin.required
? "This plugin is required for Vencord to function." ? "This plugin is required for Vencord to function."
: makeDependencyList(dependencyCheck(plugin.name, depMap)); : makeDependencyList(dependencyCheck(plugin.name, depMap));
return <Tooltip text={tooltipText}> return <Tooltip text={tooltipText} key={plugin.name}>
{({ onMouseLeave, onMouseEnter }) => ( {({ onMouseLeave, onMouseEnter }) => (
<PluginCard <PluginCard
onMouseLeave={onMouseLeave} onMouseLeave={onMouseLeave}