This commit is contained in:
Hailey
2025-02-27 12:49:49 -08:00
parent 63dddda3ef
commit d236a17810
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -227,6 +227,7 @@ export function Link({
onPress: outerOnPress, onPress: outerOnPress,
onLongPress: outerOnLongPress, onLongPress: outerOnLongPress,
download, download,
shouldProxy,
...rest ...rest
}: LinkProps) { }: LinkProps) {
const {href, isExternal, onPress, onLongPress} = useLink({ const {href, isExternal, onPress, onLongPress} = useLink({
@@ -235,6 +236,7 @@ export function Link({
action, action,
onPress: outerOnPress, onPress: outerOnPress,
onLongPress: outerOnLongPress, onLongPress: outerOnLongPress,
shouldProxy: shouldProxy,
}) })
return ( return (
@@ -287,6 +289,7 @@ export function InlineLinkText({
shareOnLongPress, shareOnLongPress,
disableUnderline, disableUnderline,
overridePresentation, overridePresentation,
shouldProxy,
...rest ...rest
}: InlineLinkProps) { }: InlineLinkProps) {
const t = useTheme() const t = useTheme()
@@ -300,6 +303,7 @@ export function InlineLinkText({
onLongPress: outerOnLongPress, onLongPress: outerOnLongPress,
shareOnLongPress, shareOnLongPress,
overridePresentation, overridePresentation,
shouldProxy: shouldProxy,
}) })
const { const {
state: hovered, state: hovered,
+1
View File
@@ -35,6 +35,7 @@ export function useOpenLink() {
url, url,
}) })
console.log('clicked:', shouldProxy)
if (shouldProxy) { if (shouldProxy) {
url = createProxiedUrl(url) url = createProxiedUrl(url)
} }