From 7476ef26cd50a19af0d487b527da6b2188efb067 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 3 Jun 2026 13:32:46 +0300 Subject: [PATCH] rename onCommit to onPreviewPress Co-Authored-By: Claude Opus 4.8 (1M context) --- src/components/Link.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Link.tsx b/src/components/Link.tsx index 888483883a..4d88457443 100644 --- a/src/components/Link.tsx +++ b/src/components/Link.tsx @@ -375,7 +375,7 @@ export function Link({ return ( {button} @@ -390,17 +390,17 @@ export function Link({ * iOS peek-menu wrapper for an external `Link`. Long-pressing previews the live * page in an in-app browser; the in-app-browser preference decides whether * tapping the peek morphs into the browser or hands off to the normal link flow - * via `onCommit`. The menu carries a Share action. + * via `onPreviewPress`. The menu carries a Share action. */ function LinkPeek({ href, - onCommit, + onPreviewPress, shouldProxy, borderRadius, children, }: { href: string - onCommit: () => void + onPreviewPress: () => void shouldProxy?: boolean borderRadius: number children: React.ReactNode @@ -424,7 +424,7 @@ function LinkPeek({ }} borderRadius={borderRadius} // Fires only when not morphing natively (in-app browser off/unset). - onPreviewPress={onCommit}> + onPreviewPress={onPreviewPress}> {children}