diff --git a/frontend/src/components/PluginView.tsx b/frontend/src/components/PluginView.tsx index b53035f78..be4568d60 100644 --- a/frontend/src/components/PluginView.tsx +++ b/frontend/src/components/PluginView.tsx @@ -53,7 +53,7 @@ const PluginView: VFC = () => { {pluginList .filter((p) => p.content) .filter(({ name }) => !hiddenPlugins.includes(name)) - .map(({ name, icon }) => ( + .map(({ name, icon, tileContent }) => tileContent === undefined ? ( setActivePlugin(name)}>
@@ -63,6 +63,14 @@ const PluginView: VFC = () => {
+ ) : ( + + setActivePlugin(name)}> + + {tileContent} + + + ))} {hiddenPlugins.length > 0 && (
diff --git a/frontend/src/plugin.ts b/frontend/src/plugin.ts index fa1bb28a3..cfba8b075 100644 --- a/frontend/src/plugin.ts +++ b/frontend/src/plugin.ts @@ -3,6 +3,7 @@ export interface Plugin { version?: string; icon: JSX.Element; content?: JSX.Element; + tileContent?: JSX.Element; onDismount?(): void; alwaysRender?: boolean; titleView?: JSX.Element;