diff options
| author | TrainDoctor <traindoctor@protonmail.com> | 2024-02-04 18:51:12 -0800 |
|---|---|---|
| committer | TrainDoctor <traindoctor@protonmail.com> | 2024-02-04 18:51:12 -0800 |
| commit | 82cb4860e0b069f6feb259f7d68d78a65896dacc (patch) | |
| tree | 42f6079794fa66059578e2fe6d35fd25b7060ee2 /src | |
| parent | 498ca9b13d5fc951a4d1be7b0f4e0f5e9aef0fc6 (diff) | |
| download | decky-bazzite-buddy-82cb4860e0b069f6feb259f7d68d78a65896dacc.tar.gz decky-bazzite-buddy-82cb4860e0b069f6feb259f7d68d78a65896dacc.zip | |
Update DFL and fix navigation
Diffstat (limited to 'src')
| -rwxr-xr-x | src/index.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.tsx b/src/index.tsx index a1f4bc5..b43e86a 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -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> |
