mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-11-08 18:01:09 -06:00
Update DFL and fix navigation
This commit is contained in:
parent
498ca9b13d
commit
82cb4860e0
3 changed files with 16 additions and 16 deletions
|
|
@ -4,9 +4,9 @@ import {
|
|||
DialogButton,
|
||||
Menu,
|
||||
MenuItem,
|
||||
Navigation,
|
||||
PanelSection,
|
||||
PanelSectionRow,
|
||||
Router,
|
||||
ServerAPI,
|
||||
showContextMenu,
|
||||
staticClasses,
|
||||
|
|
@ -67,8 +67,8 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
|
|||
<ButtonItem
|
||||
layout="below"
|
||||
onClick={() => {
|
||||
Router.CloseSideMenus();
|
||||
Router.Navigate("/decky-plugin-test");
|
||||
Navigation.CloseSideMenus();
|
||||
Navigation.Navigate("/decky-plugin-test");
|
||||
}}
|
||||
>
|
||||
Router
|
||||
|
|
@ -82,7 +82,7 @@ const DeckyPluginRouterTest: VFC = () => {
|
|||
return (
|
||||
<div style={{ marginTop: "50px", color: "white" }}>
|
||||
Hello World!
|
||||
<DialogButton onClick={() => Router.NavigateToLibraryTab()}>
|
||||
<DialogButton onClick={() => Navigation.NavigateToLibraryTab()}>
|
||||
Go to Library
|
||||
</DialogButton>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue