aboutsummaryrefslogtreecommitdiff
path: root/src/components/comments/CommentTextField.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-06-25 17:47:07 -0400
committerIvan Chen <ivan@tagg.id>2021-06-25 17:47:07 -0400
commit7ad33344681b430feff9b00392bf6d8e9e1722e7 (patch)
tree0ec4189d7714152465790210e0b4d232e861185b /src/components/comments/CommentTextField.tsx
parenta61996f4f1c6fa0556272ca3861b88e6d4272fbd (diff)
Remove unused styles, Fix comment navigation, Fix add comment
Diffstat (limited to 'src/components/comments/CommentTextField.tsx')
-rw-r--r--src/components/comments/CommentTextField.tsx26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/components/comments/CommentTextField.tsx b/src/components/comments/CommentTextField.tsx
index 6e92329c..65a237e7 100644
--- a/src/components/comments/CommentTextField.tsx
+++ b/src/components/comments/CommentTextField.tsx
@@ -99,20 +99,18 @@ const CommentTextField: FC<CommentTextFieldProps> = ({
)}
</Text>
</TextInput>
- {(theme === 'white' || (theme === 'dark' && keyboardVisible)) && (
- <View style={styles.submitButton}>
- <TouchableOpacity
- style={
- comment === ''
- ? [styles.submitButton, styles.greyButton]
- : styles.submitButton
- }
- disabled={comment === ''}
- onPress={addComment}>
- <UpArrowIcon width={35} height={35} color={'white'} />
- </TouchableOpacity>
- </View>
- )}
+ <View style={styles.submitButton}>
+ <TouchableOpacity
+ style={
+ comment === ''
+ ? [styles.submitButton, styles.greyButton]
+ : styles.submitButton
+ }
+ disabled={comment === ''}
+ onPress={addComment}>
+ <UpArrowIcon width={35} height={35} color={'white'} />
+ </TouchableOpacity>
+ </View>
</View>
{validateInput(keyboardText) &&