updated close and reply buttons

This commit is contained in:
noumantahir 2022-01-17 21:42:50 +05:00
parent 14ca70e832
commit d9778aed0c
3 changed files with 13 additions and 4 deletions

View File

@ -17,7 +17,9 @@ export default EStyleSheet.create({
}, },
cancelButton: {
marginRight: 10,
},
modalHeader: { modalHeader: {
paddingHorizontal: 12, paddingHorizontal: 12,
paddingVertical:8, paddingVertical:8,

View File

@ -5,7 +5,7 @@ import styles from './quickReplyModalStyles';
import { forwardRef } from 'react'; import { forwardRef } from 'react';
import { View, Text, Alert, TouchableOpacity, Keyboard } from 'react-native'; import { View, Text, Alert, TouchableOpacity, Keyboard } from 'react-native';
import { useIntl } from 'react-intl'; import { useIntl } from 'react-intl';
import { IconButton, MainButton, SummaryArea, TextInput, UserAvatar } from '..'; import { IconButton, MainButton, SummaryArea, TextButton, TextInput, UserAvatar } from '..';
import { useSelector, useDispatch } from 'react-redux'; import { useSelector, useDispatch } from 'react-redux';
import { generateReplyPermlink } from '../../utils/editor'; import { generateReplyPermlink } from '../../utils/editor';
import { postComment } from '../../providers/hive/dhive'; import { postComment } from '../../providers/hive/dhive';
@ -203,6 +203,13 @@ const QuickReplyModal = ({}: QuickReplyModalProps, ref) => {
/> />
</View> </View>
<View style={styles.footer}> <View style={styles.footer}>
<TextButton
style={styles.cancelButton}
onPress={_handleClosePress}
text={intl.formatMessage({
id: 'quick_reply.close',
})}
/>
<MainButton <MainButton
style={styles.commentBtn} style={styles.commentBtn}
onPress={() => _submitReply()} onPress={() => _submitReply()}
@ -225,7 +232,6 @@ const QuickReplyModal = ({}: QuickReplyModalProps, ref) => {
containerStyle={styles.sheetContent} containerStyle={styles.sheetContent}
keyboardHandlerEnabled keyboardHandlerEnabled
indicatorColor={EStyleSheet.value('$primaryWhiteLightBackground')} indicatorColor={EStyleSheet.value('$primaryWhiteLightBackground')}
CustomHeaderComponent={_renderSheetHeader()}
> >
{selectedPost && _renderContent()} {selectedPost && _renderContent()}
</ActionSheet> </ActionSheet>

View File

@ -711,6 +711,7 @@
"quick_reply":{ "quick_reply":{
"placeholder":"Add a comment", "placeholder":"Add a comment",
"comment": "Comment", "comment": "Comment",
"reply": "Reply" "reply": "REPLY",
"close":"CLOSE"
} }
} }