Bluesky app fork with some witchin' additions 💫

Fix dataSet for noFeedback links (#8745)

* fix dataSet for noFeedback links

* rm memo

* rm useless spread

authored by samuel.fm and committed by

GitHub ee7f5087 7caf2922

+8 -14
+8 -14
src/view/com/util/Link.tsx
··· 101 101 {name: 'activate', label: title}, 102 102 ] 103 103 104 - const dataSet = useMemo(() => { 105 - const ds = {...dataSetProp} 106 - if (anchorNoUnderline) { 107 - ds.noUnderline = 1 108 - } 109 - return ds 110 - }, [dataSetProp, anchorNoUnderline]) 104 + const dataSet = anchorNoUnderline 105 + ? {...dataSetProp, noUnderline: 1} 106 + : dataSetProp 111 107 112 108 if (noFeedback) { 113 109 return ( ··· 125 121 onAccessibilityAction?.(e) 126 122 } 127 123 }} 124 + // @ts-ignore web only -sfn 125 + dataSet={dataSet} 128 126 {...props} 129 127 android_ripple={{ 130 128 color: t.atoms.bg_contrast_25.backgroundColor, ··· 198 196 console.error('Unable to detect mismatching label') 199 197 } 200 198 201 - const dataSet = useMemo(() => { 202 - const ds = {...dataSetProp} 203 - if (anchorNoUnderline) { 204 - ds.noUnderline = 1 205 - } 206 - return ds 207 - }, [dataSetProp, anchorNoUnderline]) 199 + const dataSet = anchorNoUnderline 200 + ? {...dataSetProp, noUnderline: 1} 201 + : dataSetProp 208 202 209 203 const onPress = useCallback( 210 204 (e?: Event) => {