diff options
| author | AAGaming <aa@mail.catvibers.me> | 2022-06-22 23:22:27 -0400 |
|---|---|---|
| committer | AAGaming <aa@mail.catvibers.me> | 2022-06-22 23:22:27 -0400 |
| commit | 9619c52720c97ef74842b15aa732dd0a8d6fb26a (patch) | |
| tree | ceb46763b919ef8b5f7ac2c0cc0522ad9b6c95b9 /frontend/src/components/PluginView.tsx | |
| parent | 80b223180e9a5f86bb6f6a42fb4660862872f7ab (diff) | |
| download | decky-loader-9619c52720c97ef74842b15aa732dd0a8d6fb26a.tar.gz decky-loader-9619c52720c97ef74842b15aa732dd0a8d6fb26a.zip | |
add settings page with install from URL option
Diffstat (limited to 'frontend/src/components/PluginView.tsx')
| -rw-r--r-- | frontend/src/components/PluginView.tsx | 26 |
1 files changed, 3 insertions, 23 deletions
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 ( - <div style={{ height: '100%' }}> - <div style={{ position: 'absolute', top: '3px', left: '16px', zIndex: 20 }}> - <DialogButton style={{ minWidth: 0, padding: '10px 12px' }} onClick={closeActivePlugin}> - <FaArrowLeft style={{ display: 'block' }} /> - </DialogButton> - </div> - {activePlugin.content} - </div> - ); + return <div style={{ height: '100%' }}>{activePlugin.content}</div>; } return ( <PanelSection> - <div style={{ position: 'absolute', top: '3px', right: '16px', zIndex: 20 }}> - <DialogButton style={{ minWidth: 0, padding: '10px 12px' }} onClick={onStoreClick}> - <FaStore style={{ display: 'block' }} /> - </DialogButton> - </div> {plugins.map(({ name, icon }) => ( <PanelSectionRow key={name}> <ButtonItem layout="below" onClick={() => setActivePlugin(name)}> |
