Bluesky app fork with some witchin' additions 💫

Don't highlight tags in composer yet (#1665)

authored by

Eric Bailey and committed by
GitHub
fc28fc63 d68b4ca8

+13 -10
+13 -10
src/view/com/composer/text-input/TextInput.tsx
··· 187 187 const textDecorated = useMemo(() => { 188 188 let i = 0 189 189 190 - return Array.from(richtext.segments()).map(segment => ( 191 - <Text 192 - key={i++} 193 - style={[ 194 - !segment.facet ? pal.text : pal.link, 195 - styles.textInputFormatting, 196 - ]}> 197 - {segment.text} 198 - </Text> 199 - )) 190 + return Array.from(richtext.segments()).map(segment => { 191 + const isTag = AppBskyRichtextFacet.isTag(segment.facet?.features?.[0]) 192 + return ( 193 + <Text 194 + key={i++} 195 + style={[ 196 + segment.facet && !isTag ? pal.link : pal.text, 197 + styles.textInputFormatting, 198 + ]}> 199 + {segment.text} 200 + </Text> 201 + ) 202 + }) 200 203 }, [richtext, pal.link, pal.text]) 201 204 202 205 return (