Skip to content

Commit

Permalink
switch Router to Navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
beebls committed Sep 14, 2023
1 parent 5673125 commit d6ae395
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/src/components/TitleView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DialogButton, Focusable, Router, staticClasses } from 'decky-frontend-lib';
import { DialogButton, Focusable, Navigation, staticClasses } from 'decky-frontend-lib';
import { CSSProperties, VFC, cloneElement } from 'react';
import { useTranslation } from 'react-i18next';
import { BsGearFill } from 'react-icons/bs';
Expand All @@ -17,18 +17,18 @@ const TitleView: VFC = () => {
const { t } = useTranslation();

const onSettingsClick = () => {
Router.CloseSideMenus();
Router.Navigate('/decky/settings');
Navigation.CloseSideMenus();
Navigation.Navigate('/decky/settings');
};

const onStoreClick = () => {
Router.CloseSideMenus();
Router.Navigate('/decky/store');
Navigation.CloseSideMenus();
Navigation.Navigate('/decky/store');
};

const onInfoClick = () => {
Router.CloseSideMenus();
Router.Navigate(`/decky/docs/${activePlugin?.name}`);
Navigation.CloseSideMenus();
Navigation.Navigate(`/decky/docs/${activePlugin?.name}`);
};

if (activePlugin === null) {
Expand Down

0 comments on commit d6ae395

Please sign in to comment.