Skip to content

Commit

Permalink
Update DFL and fix navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
TrainDoctor committed Feb 5, 2024
1 parent 498ca9b commit 82cb486
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"typescript": "^4.7.4"
},
"dependencies": {
"decky-frontend-lib": "^3.21.1",
"decky-frontend-lib": "^3.24.5",
"react-icons": "^4.4.0"
},
"pnpm": {
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {
DialogButton,
Menu,
MenuItem,
Navigation,
PanelSection,
PanelSectionRow,
Router,
ServerAPI,
showContextMenu,
staticClasses,
Expand Down Expand Up @@ -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
Expand All @@ -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>
Expand Down

0 comments on commit 82cb486

Please sign in to comment.