diff --git a/src/view/com/composer/TagInput/index.tsx b/src/view/com/composer/TagInput/index.tsx index 540b5c0771..64565c2530 100644 --- a/src/view/com/composer/TagInput/index.tsx +++ b/src/view/com/composer/TagInput/index.tsx @@ -5,7 +5,6 @@ import { NativeSyntheticEvent, TextInputKeyPressEventData, Platform, - Pressable, ScrollView, TextInput, } from 'react-native' @@ -19,10 +18,10 @@ import {Portal} from 'view/com/util/Portal' import {TagsAutocompleteModel} from 'state/models/ui/tags-autocomplete' import {usePalette} from 'lib/hooks/usePalette' import {TagButton} from 'view/com/Tag' -import {Text} from 'view/com/util/text/Text' import * as Sheet from 'view/com/sheets/Base' import {useStores} from 'state/index' import {ActivityIndicator} from 'react-native' +import {TagInputEntryButton} from './TagInputEntryButton' function uniq(tags: string[]) { return Array.from(new Set(tags)) @@ -150,37 +149,7 @@ export function TagInput({ return ( - - - {tags.length ? ( - - Add + - - ) : ( - <> - - - Click to add tags to your post - - - )} - - - {tags.map(tag => ( - - - #{tag} - - - ))} - +