mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-13 12:15:09 +03:00
chore(titleview): migrate to Navigation
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user