mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 08:22:04 +00:00
support non-ui plugins
This commit is contained in:
@@ -12,7 +12,9 @@ const PluginView: VFC = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<PanelSection>
|
<PanelSection>
|
||||||
{plugins.map(({ name, icon }) => (
|
{plugins
|
||||||
|
.filter((p) => p.content)
|
||||||
|
.map(({ name, icon }) => (
|
||||||
<PanelSectionRow key={name}>
|
<PanelSectionRow key={name}>
|
||||||
<ButtonItem layout="below" onClick={() => setActivePlugin(name)}>
|
<ButtonItem layout="below" onClick={() => setActivePlugin(name)}>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
export interface Plugin {
|
export interface Plugin {
|
||||||
name: any;
|
name: string;
|
||||||
content: any;
|
icon: JSX.Element;
|
||||||
icon: any;
|
content?: JSX.Element;
|
||||||
onDismount?(): void;
|
onDismount?(): void;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user