aboutsummaryrefslogtreecommitdiff
path: root/src/components/comments/CommentTextField.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/comments/CommentTextField.tsx')
-rw-r--r--src/components/comments/CommentTextField.tsx21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/components/comments/CommentTextField.tsx b/src/components/comments/CommentTextField.tsx
index 61b489bb..3e97449c 100644
--- a/src/components/comments/CommentTextField.tsx
+++ b/src/components/comments/CommentTextField.tsx
@@ -1,46 +1,31 @@
-import React, {
- FC,
- MutableRefObject,
- Ref,
- useMemo,
- useRef,
- useState,
- ReactFragment,
-} from 'react';
+import React, {FC, ReactFragment} from 'react';
import {
NativeSyntheticEvent,
StyleSheet,
StyleProp,
Text,
TextInput,
- TextInputProps,
TextInputSelectionChangeEventData,
TouchableOpacity,
View,
ViewStyle,
} from 'react-native';
-import {useDispatch, useSelector} from 'react-redux';
+import {useSelector} from 'react-redux';
import {TAGG_LIGHT_BLUE} from '../../constants';
+import {RootState} from '../../store/rootReducer';
import {
Part,
PartType,
- PatternPartType,
MentionPartType,
- Suggestion,
} from 'react-native-controlled-mentions/dist/types';
import {
defaultMentionTextStyle,
- generateValueFromPartsAndChangedText,
- generateValueWithAddedSuggestion,
- getMentionPartSuggestionKeywords,
isMentionPartType,
- parseValue,
} from 'react-native-controlled-mentions/dist/utils';
import {Avatar} from '../common';
import {normalize} from 'react-native-elements';
import UpArrowIcon from '../../assets/icons/up_arrow.svg';
-import {SCREEN_WIDTH, SCREEN_HEIGHT} from '../../utils';
type CommentTextFieldProps = {
containerStyle: StyleProp<ViewStyle>;