summaryrefslogtreecommitdiff
path: root/frontend/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components')
-rw-r--r--frontend/src/components/PluginView.tsx22
1 files changed, 12 insertions, 10 deletions
diff --git a/frontend/src/components/PluginView.tsx b/frontend/src/components/PluginView.tsx
index 953abd25..cc6dbefc 100644
--- a/frontend/src/components/PluginView.tsx
+++ b/frontend/src/components/PluginView.tsx
@@ -12,16 +12,18 @@ const PluginView: VFC = () => {
return (
<PanelSection>
- {plugins.map(({ name, icon }) => (
- <PanelSectionRow key={name}>
- <ButtonItem layout="below" onClick={() => setActivePlugin(name)}>
- <div style={{ display: 'flex', justifyContent: 'space-between' }}>
- <div>{icon}</div>
- <div>{name}</div>
- </div>
- </ButtonItem>
- </PanelSectionRow>
- ))}
+ {plugins
+ .filter((p) => p.content)
+ .map(({ name, icon }) => (
+ <PanelSectionRow key={name}>
+ <ButtonItem layout="below" onClick={() => setActivePlugin(name)}>
+ <div style={{ display: 'flex', justifyContent: 'space-between' }}>
+ <div>{icon}</div>
+ <div>{name}</div>
+ </div>
+ </ButtonItem>
+ </PanelSectionRow>
+ ))}
</PanelSection>
);
};