diff options
| author | AAGaming <aagaming@riseup.net> | 2024-07-28 18:22:30 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-08-03 14:04:20 -0400 |
| commit | 262b62ea4ff425518c7ec206e3c325ff6b7096db (patch) | |
| tree | 8c0a357174e626b36a4cbc124272b9e205ffb46e | |
| parent | 4cde25c43e112b4e305ad7789b502f41348e2e90 (diff) | |
| download | decky-loader-262b62ea4ff425518c7ec206e3c325ff6b7096db.tar.gz decky-loader-262b62ea4ff425518c7ec206e3c325ff6b7096db.zip | |
chore(titleview): migrate to Navigation
| -rw-r--r-- | frontend/src/components/TitleView.tsx | 10 |
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) { |
