support non-ui plugins

This commit is contained in:
AAGaming
2022-07-07 00:03:20 -04:00
parent e3a965329d
commit 45949e8456
2 changed files with 15 additions and 13 deletions
+3 -1
View File
@@ -12,7 +12,9 @@ const PluginView: VFC = () => {
return (
<PanelSection>
{plugins.map(({ name, icon }) => (
{plugins
.filter((p) => p.content)
.map(({ name, icon }) => (
<PanelSectionRow key={name}>
<ButtonItem layout="below" onClick={() => setActivePlugin(name)}>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
+3 -3
View File
@@ -1,6 +1,6 @@
export interface Plugin {
name: any;
content: any;
icon: any;
name: string;
icon: JSX.Element;
content?: JSX.Element;
onDismount?(): void;
}