Skip to content

Commit

Permalink
backup commit
Browse files Browse the repository at this point in the history
  • Loading branch information
marios8543 committed Nov 13, 2023
1 parent 5ff7c46 commit df7c23a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend/src/components/PluginView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
<PanelSectionRow key={name}>
<ButtonItem layout="below" onClick={() => setActivePlugin(name)}>
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
Expand All @@ -63,6 +63,14 @@ const PluginView: VFC = () => {
</div>
</ButtonItem>
</PanelSectionRow>
) : (
<PanelSectionRow key={name}>
<ButtonItem layout="below" onClick={() => setActivePlugin(name)}>
<PanelSection>
{tileContent}
</PanelSection>
</ButtonItem>
</PanelSectionRow>
))}
{hiddenPlugins.length > 0 && (
<div style={{ display: 'flex', alignItems: 'center', gap: '10px', fontSize: '0.8rem', marginTop: '10px' }}>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit df7c23a

Please sign in to comment.