summaryrefslogtreecommitdiff
path: root/frontend/src/components/TitleView.tsx
diff options
context:
space:
mode:
authorJonas Dellinger <jonas@dellinger.dev>2022-05-31 18:05:26 +0200
committerJonas Dellinger <jonas@dellinger.dev>2022-05-31 18:05:26 +0200
commitbd1b2e82fdc6ff1725bab61593e1f54d0b975fe0 (patch)
treedb0e867be4088ff226f8b9a9cd5d1e01bec5ba0e /frontend/src/components/TitleView.tsx
parent660e34664ee749f59e43620e541c72fd21a2284a (diff)
downloaddecky-loader-bd1b2e82fdc6ff1725bab61593e1f54d0b975fe0.tar.gz
decky-loader-bd1b2e82fdc6ff1725bab61593e1f54d0b975fe0.zip
Move store opening to frontend only
Diffstat (limited to 'frontend/src/components/TitleView.tsx')
-rw-r--r--frontend/src/components/TitleView.tsx16
1 files changed, 2 insertions, 14 deletions
diff --git a/frontend/src/components/TitleView.tsx b/frontend/src/components/TitleView.tsx
index 8ca81028..4b4a6825 100644
--- a/frontend/src/components/TitleView.tsx
+++ b/frontend/src/components/TitleView.tsx
@@ -1,25 +1,13 @@
-import { DialogButton, staticClasses } from 'decky-frontend-lib';
+import { staticClasses } from 'decky-frontend-lib';
import { VFC } from 'react';
-import { FaShoppingBag } from 'react-icons/fa';
import { useDeckyState } from './DeckyState';
const TitleView: VFC = () => {
const { activePlugin } = useDeckyState();
- const openPluginStore = () => fetch('http://127.0.0.1:1337/methods/open_plugin_store', { method: 'POST' });
-
if (activePlugin === null) {
- return (
- <div className={staticClasses.Title}>
- Decky
- <div style={{ position: 'absolute', top: '3px', right: '16px', zIndex: 20 }}>
- <DialogButton style={{ minWidth: 0, padding: '10px 12px' }} onClick={openPluginStore}>
- <FaShoppingBag style={{ display: 'block' }} />
- </DialogButton>
- </div>
- </div>
- );
+ return <div className={staticClasses.Title}>Decky</div>;
}
return (