summaryrefslogtreecommitdiff
path: root/frontend/src/components/PluginView.tsx
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2024-10-04 23:59:53 -0400
committerAAGaming <aagaming@riseup.net>2024-10-11 15:05:15 -0400
commit7b32df09487383897927356547f1ba5a73e8cc94 (patch)
tree18932621c4d2ac794e5fd1b5cb6968c4554b66e0 /frontend/src/components/PluginView.tsx
parent306b0ff8d6206a912478ed1e3d3dbf82b8a85c41 (diff)
downloaddecky-loader-7b32df09487383897927356547f1ba5a73e8cc94.tar.gz
decky-loader-7b32df09487383897927356547f1ba5a73e8cc94.zip
Add routerhook for desktop UI and a basic sidebar menu for Decky in desktop UI
Diffstat (limited to 'frontend/src/components/PluginView.tsx')
-rw-r--r--frontend/src/components/PluginView.tsx10
1 files changed, 7 insertions, 3 deletions
diff --git a/frontend/src/components/PluginView.tsx b/frontend/src/components/PluginView.tsx
index 19afbca5..e36df3cb 100644
--- a/frontend/src/components/PluginView.tsx
+++ b/frontend/src/components/PluginView.tsx
@@ -9,7 +9,11 @@ import NotificationBadge from './NotificationBadge';
import { useQuickAccessVisible } from './QuickAccessVisibleState';
import TitleView from './TitleView';
-const PluginView: FC = () => {
+interface PluginViewProps {
+ desktop?: boolean;
+}
+
+const PluginView: FC<PluginViewProps> = ({ desktop = false }) => {
const { hiddenPlugins } = useDeckyState();
const { plugins, updates, activePlugin, pluginOrder, setActivePlugin, closeActivePlugin } = useDeckyState();
const visible = useQuickAccessVisible();
@@ -27,7 +31,7 @@ const PluginView: FC = () => {
if (activePlugin) {
return (
<Focusable onCancelButton={closeActivePlugin}>
- <TitleView />
+ <TitleView desktop={desktop} />
<div style={{ height: '100%', paddingTop: '16px' }}>
<ErrorBoundary>{(visible || activePlugin.alwaysRender) && activePlugin.content}</ErrorBoundary>
</div>
@@ -36,7 +40,7 @@ const PluginView: FC = () => {
}
return (
<>
- <TitleView />
+ <TitleView desktop={desktop} />
<div
style={{
paddingTop: '16px',