diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2026-09-07 16:02:26 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2026-09-07 16:02:26 -0400 |
| commit | 22db1125238e54b29538102727c36284e122e703 (patch) | |
| tree | 9fb5f2bc5a00256dc811e4dbbd1e963c5492c48c /src/components/NowPlayingTab.tsx | |
| parent | f48ff4b541b1ef877905bda248459460a943dd6e (diff) | |
| download | decky-lsfg-vk-22db1125238e54b29538102727c36284e122e703.tar.gz decky-lsfg-vk-22db1125238e54b29538102727c36284e122e703.zip | |
feat: refine game discovery and profile UX
Diffstat (limited to 'src/components/NowPlayingTab.tsx')
| -rw-r--r-- | src/components/NowPlayingTab.tsx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/components/NowPlayingTab.tsx b/src/components/NowPlayingTab.tsx index b4f0557..8d2d779 100644 --- a/src/components/NowPlayingTab.tsx +++ b/src/components/NowPlayingTab.tsx @@ -1,4 +1,4 @@ -import { ButtonItem, Field, Focusable, PanelSection, PanelSectionRow } from "@decky/ui"; +import { Field, Focusable, PanelSection, PanelSectionRow } from "@decky/ui"; import { ConfigurationData } from "../config/configSchema"; import { GameTarget } from "../hooks/useGameConfiguration"; import { GameConfigurationControls } from "./GameConfigurationControls"; @@ -7,26 +7,20 @@ interface Props { game: GameTarget; config: ConfigurationData; onConfigChange: (fieldName: keyof ConfigurationData, value: boolean | number | string | string[]) => Promise<void>; - onRemove: () => Promise<void>; } -export function NowPlayingTab({ game, config, onConfigChange, onRemove }: Props) { +export function NowPlayingTab({ game, config, onConfigChange }: Props) { return ( <Focusable> - <PanelSection title="Now Playing"> + <PanelSection> <PanelSectionRow> <Field label={game.name} - description={`${game.nonSteam ? "Non-Steam" : "Steam"} · App ID ${game.appid} · Configured`} + description={`${game.nonSteam ? "Non-Steam" : "Steam"} | App ID ${game.appid}`} /> </PanelSectionRow> </PanelSection> <GameConfigurationControls config={config} onConfigChange={onConfigChange} /> - <PanelSectionRow> - <ButtonItem layout="below" onClick={() => void onRemove()}> - Remove profile - </ButtonItem> - </PanelSectionRow> </Focusable> ); } |
