Fix errors detected by linter

I meant to fix these changes before pushing the PR, but forgot about it.
This commit is contained in:
Hornwitser committed 2021-03-03 14:41:55 +01:00
1 parent 7797ee708a
commit bdd70e53dc
2 files changed
+5 -5

No files matched your search

@@ -12,7 +12,7 @@ export default function PluginViewPage() {
let plugins = useContext(PluginsContext);
let pluginName = params.name;
let plugin = plugins.find(plugin => plugin.meta.name === pluginName);
let plugin = plugins.find(p => p.meta.name === pluginName);
let pluginTitle = plugin.info ? plugin.info.title : plugin.meta.name;
let nav = [{ name: "Plugins", path: "/plugins" }, { name: pluginTitle }];
if (!plugin) {
@@ -17,7 +17,7 @@ export default function PluginsPage() {
{
title: "Name",
key: "name",
render: plugin => plugin.info ? plugin.info.title : plugin.meta.name,
render: plugin => (plugin.info ? plugin.info.title : plugin.meta.name),
},
{
title: "Version",
@@ -30,12 +30,12 @@ export default function PluginsPage() {
return "Version missmatched";
}
return plugin.package.version;
}
},
},
{
title: "Enabled",
dataIndex: ["meta", "enabled"],
render: enabled => enabled ? "Yes" : null,
render: enabled => (enabled ? "Yes" : null),
responsive: ["sm"],
},
]}
@@ -45,7 +45,7 @@ export default function PluginsPage() {
onRow={plugin => ({
onClick: event => {
history.push(`/plugins/${plugin.meta.name}/view`);
}
},
})}
/>
</PageLayout>;