mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 17:12:01 +00:00
update NavigateToExternalWeb in Markdown to use Navigation
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Focusable, Router } from 'decky-frontend-lib';
|
import { Focusable, Navigation } from 'decky-frontend-lib';
|
||||||
import { FunctionComponent, useRef } from 'react';
|
import { FunctionComponent, useRef } from 'react';
|
||||||
import ReactMarkdown, { Options as ReactMarkdownOptions } from 'react-markdown';
|
import ReactMarkdown, { Options as ReactMarkdownOptions } from 'react-markdown';
|
||||||
import remarkGfm from 'remark-gfm';
|
import remarkGfm from 'remark-gfm';
|
||||||
@@ -22,7 +22,7 @@ const Markdown: FunctionComponent<MarkdownProps> = (props) => {
|
|||||||
onActivate={() => {}}
|
onActivate={() => {}}
|
||||||
onOKButton={() => {
|
onOKButton={() => {
|
||||||
props.onDismiss?.();
|
props.onDismiss?.();
|
||||||
Router.NavigateToExternalWeb(aRef.current!.href);
|
Navigation.NavigateToExternalWeb(aRef.current!.href);
|
||||||
}}
|
}}
|
||||||
style={{ display: 'inline' }}
|
style={{ display: 'inline' }}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user