From 44776b393e984e5968c8b092fade56644c39a4a7 Mon Sep 17 00:00:00 2001 From: marios Date: Thu, 26 May 2022 21:14:32 +0300 Subject: added open store button --- frontend/src/components/PluginView.tsx | 2 +- frontend/src/components/TitleView.tsx | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'frontend/src') diff --git a/frontend/src/components/PluginView.tsx b/frontend/src/components/PluginView.tsx index b3640395..65288c05 100644 --- a/frontend/src/components/PluginView.tsx +++ b/frontend/src/components/PluginView.tsx @@ -9,7 +9,7 @@ const PluginView: VFC = () => { if (activePlugin) { return ( -
+
diff --git a/frontend/src/components/TitleView.tsx b/frontend/src/components/TitleView.tsx index 4b4a6825..a9e1017a 100644 --- a/frontend/src/components/TitleView.tsx +++ b/frontend/src/components/TitleView.tsx @@ -1,13 +1,23 @@ -import { staticClasses } from 'decky-frontend-lib'; +import { staticClasses, DialogButton } 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
Decky
; + return
+ Decky +
+ + + +
+
; } return ( -- cgit v1.2.3