From 9619c52720c97ef74842b15aa732dd0a8d6fb26a Mon Sep 17 00:00:00 2001 From: AAGaming Date: Wed, 22 Jun 2022 23:22:27 -0400 Subject: add settings page with install from URL option --- frontend/src/components/PluginView.tsx | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'frontend/src/components/PluginView.tsx') diff --git a/frontend/src/components/PluginView.tsx b/frontend/src/components/PluginView.tsx index 92650fec..953abd25 100644 --- a/frontend/src/components/PluginView.tsx +++ b/frontend/src/components/PluginView.tsx @@ -1,37 +1,17 @@ -import { ButtonItem, DialogButton, PanelSection, PanelSectionRow, Router } from 'decky-frontend-lib'; +import { ButtonItem, PanelSection, PanelSectionRow } from 'decky-frontend-lib'; import { VFC } from 'react'; -import { FaArrowLeft, FaStore } from 'react-icons/fa'; import { useDeckyState } from './DeckyState'; const PluginView: VFC = () => { - const { plugins, activePlugin, setActivePlugin, closeActivePlugin } = useDeckyState(); - - const onStoreClick = () => { - Router.CloseSideMenus(); - Router.Navigate('/decky/store'); - }; + const { plugins, activePlugin, setActivePlugin } = useDeckyState(); if (activePlugin) { - return ( -
-
- - - -
- {activePlugin.content} -
- ); + return
{activePlugin.content}
; } return ( -
- - - -
{plugins.map(({ name, icon }) => ( setActivePlugin(name)}> -- cgit v1.2.3