From 82cb4860e0b069f6feb259f7d68d78a65896dacc Mon Sep 17 00:00:00 2001
From: TrainDoctor <traindoctor@protonmail.com>
Date: Sun, 4 Feb 2024 18:51:12 -0800
Subject: Update DFL and fix navigation

---
 src/index.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/index.tsx')

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>
-- 
cgit v1.2.3

