From fc28fc639fa20f8aceed2702d986ed239bb303e0 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 10 Oct 2023 15:44:27 -0500 Subject: Don't highlight tags in composer yet (#1665) --- src/view/com/composer/text-input/TextInput.tsx | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src/view/com/composer/text-input/TextInput.tsx') diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx index c5d094ea5..2810129f6 100644 --- a/src/view/com/composer/text-input/TextInput.tsx +++ b/src/view/com/composer/text-input/TextInput.tsx @@ -187,16 +187,19 @@ export const TextInput = forwardRef(function TextInputImpl( const textDecorated = useMemo(() => { let i = 0 - return Array.from(richtext.segments()).map(segment => ( - - {segment.text} - - )) + return Array.from(richtext.segments()).map(segment => { + const isTag = AppBskyRichtextFacet.isTag(segment.facet?.features?.[0]) + return ( + + {segment.text} + + ) + }) }, [richtext, pal.link, pal.text]) return ( -- cgit 1.4.1