summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2024-07-28 18:22:30 -0400
committerAAGaming <aagaming@riseup.net>2024-08-03 14:04:20 -0400
commit262b62ea4ff425518c7ec206e3c325ff6b7096db (patch)
tree8c0a357174e626b36a4cbc124272b9e205ffb46e
parent4cde25c43e112b4e305ad7789b502f41348e2e90 (diff)
downloaddecky-loader-262b62ea4ff425518c7ec206e3c325ff6b7096db.tar.gz
decky-loader-262b62ea4ff425518c7ec206e3c325ff6b7096db.zip
chore(titleview): migrate to Navigation
-rw-r--r--frontend/src/components/TitleView.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/components/TitleView.tsx b/frontend/src/components/TitleView.tsx
index 8b45aae4..0cb82b7f 100644
--- a/frontend/src/components/TitleView.tsx
+++ b/frontend/src/components/TitleView.tsx
@@ -1,4 +1,4 @@
-import { DialogButton, Focusable, Router, staticClasses } from '@decky/ui';
+import { DialogButton, Focusable, Navigation, staticClasses } from '@decky/ui';
import { CSSProperties, FC } from 'react';
import { useTranslation } from 'react-i18next';
import { BsGearFill } from 'react-icons/bs';
@@ -19,13 +19,13 @@ const TitleView: FC = () => {
const { t } = useTranslation();
const onSettingsClick = () => {
- Router.CloseSideMenus();
- Router.Navigate('/decky/settings');
+ Navigation.Navigate('/decky/settings');
+ Navigation.CloseSideMenus();
};
const onStoreClick = () => {
- Router.CloseSideMenus();
- Router.Navigate('/decky/store');
+ Navigation.Navigate('/decky/store');
+ Navigation.CloseSideMenus();
};
if (activePlugin === null) {