diff --git a/packages/tui/src/component/dialog-pair.tsx b/packages/tui/src/component/dialog-pair.tsx index 70032b2e519..df60d6db89f 100644 --- a/packages/tui/src/component/dialog-pair.tsx +++ b/packages/tui/src/component/dialog-pair.tsx @@ -39,6 +39,13 @@ export function DialogPair(props: { credentials?: DialogPairCredentials }) { password: props.credentials?.password ?? "", } }) + const localhost = createMemo(() => { + const value = info()?.urls[0] + if (!value) return "" + const url = new URL(value) + url.hostname = "localhost" + return url.toString().replace(/\/$/, "") + }) const horizontal = createMemo(() => dimensions().width >= 96) const content = () => { const value = info() @@ -46,6 +53,10 @@ export function DialogPair(props: { credentials?: DialogPairCredentials }) { return ( + + This device + {localhost()} + URLs {(url) => {url}}