mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 04:11:50 +03:00
changed places for save icon
This commit is contained in:
parent
e20eecb8b6
commit
1d49d34555
@ -19,7 +19,7 @@ export default EStyleSheet.create({
|
||||
saveIcon: {
|
||||
fontSize: 20,
|
||||
color: '$iconColor',
|
||||
marginLeft: 15,
|
||||
width: 50,
|
||||
},
|
||||
savedIcon: {
|
||||
color: '#a1c982',
|
||||
@ -36,7 +36,6 @@ export default EStyleSheet.create({
|
||||
quickTitle: {
|
||||
fontSize: 10,
|
||||
color: '$iconColor',
|
||||
marginLeft: 24,
|
||||
alignSelf: 'center',
|
||||
},
|
||||
rightIcon: {
|
||||
|
@ -105,19 +105,11 @@ class BasicHeaderView extends Component {
|
||||
disabled={disabled}
|
||||
/>
|
||||
{isHasIcons && !isReply && (
|
||||
<View>
|
||||
{!isDraftSaving ? (
|
||||
<IconButton
|
||||
iconStyle={[styles.saveIcon, isDraftSaved && styles.savedIcon]}
|
||||
iconType="MaterialIcons"
|
||||
name="save"
|
||||
size={25}
|
||||
onPress={() => handleOnSaveButtonPress && handleOnSaveButtonPress()}
|
||||
<DateTimePicker
|
||||
type="date-time"
|
||||
onSubmit={this._handleDatePickerChange}
|
||||
disabled={!isFormValid}
|
||||
/>
|
||||
) : (
|
||||
<ActivityIndicator style={styles.textButtonWrapper} />
|
||||
)}
|
||||
</View>
|
||||
)}
|
||||
|
||||
{!isInputVisible && (
|
||||
@ -184,11 +176,19 @@ class BasicHeaderView extends Component {
|
||||
{isHasIcons && (
|
||||
<Fragment>
|
||||
{!isReply && (
|
||||
<DateTimePicker
|
||||
type="date-time"
|
||||
onSubmit={this._handleDatePickerChange}
|
||||
disabled={!isFormValid}
|
||||
<Fragment>
|
||||
{!isDraftSaving ? (
|
||||
<IconButton
|
||||
iconStyle={[styles.saveIcon, isDraftSaved && styles.savedIcon]}
|
||||
iconType="MaterialIcons"
|
||||
name="save"
|
||||
size={25}
|
||||
onPress={() => handleOnSaveButtonPress && handleOnSaveButtonPress()}
|
||||
/>
|
||||
) : (
|
||||
<ActivityIndicator style={styles.textButtonWrapper} />
|
||||
)}
|
||||
</Fragment>
|
||||
)}
|
||||
<IconButton
|
||||
style={styles.iconButton}
|
||||
|
@ -35,5 +35,6 @@ export default EStyleSheet.create({
|
||||
},
|
||||
picker: {
|
||||
width: 50,
|
||||
marginLeft: 20,
|
||||
},
|
||||
});
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable react/jsx-wrap-multilines */
|
||||
import React, { PureComponent } from 'react';
|
||||
import DatePicker from 'react-native-datepicker';
|
||||
import moment from 'moment';
|
||||
|
Loading…
Reference in New Issue
Block a user