diff options
author | Brian Kim <brian@tagg.id> | 2021-06-17 16:21:57 +0900 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-06-17 16:21:57 +0900 |
commit | 6fcd7b41cd763e95733187c6c4d48ddb6e9bd01a (patch) | |
tree | 44647b93c36ef4e99c5243f38e0b98427cb27de4 /src/components/comments/CommentTextField.tsx | |
parent | 867484bac72a64231e57f96fdc4ce813930f75f6 (diff) |
Made edits
Diffstat (limited to 'src/components/comments/CommentTextField.tsx')
-rw-r--r-- | src/components/comments/CommentTextField.tsx | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/components/comments/CommentTextField.tsx b/src/components/comments/CommentTextField.tsx index a3a14ec8..6e92329c 100644 --- a/src/components/comments/CommentTextField.tsx +++ b/src/components/comments/CommentTextField.tsx @@ -23,7 +23,7 @@ import { isMentionPartType, } from 'react-native-controlled-mentions/dist/utils'; import {Avatar} from '../common'; -import {normalize} from 'react-native-elements'; +import {normalize} from '../../utils'; import UpArrowIcon from '../../assets/icons/up_arrow.svg'; @@ -115,16 +115,15 @@ const CommentTextField: FC<CommentTextFieldProps> = ({ )} </View> - {validateInput(keyboardText) - ? ( - partTypes.filter( - (one) => - isMentionPartType(one) && - one.renderSuggestions != null && - one.isBottomMentionSuggestionsRender, - ) as MentionPartType[] - ).map(renderMentionSuggestions) - : null} + {validateInput(keyboardText) && + ( + partTypes.filter( + (one) => + isMentionPartType(one) && + one.renderSuggestions != null && + one.isBottomMentionSuggestionsRender, + ) as MentionPartType[] + ).map(renderMentionSuggestions)} </View> ); }; @@ -143,7 +142,7 @@ const styles = StyleSheet.create({ alignSelf: 'center', alignItems: 'center', justifyContent: 'center', - height: normalize(40), + height: normalize(45), }, greyButton: { backgroundColor: 'grey', |