mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
Fixed editor isssues
This commit is contained in:
parent
bfa2d89be6
commit
6ed812b741
@ -1,9 +1,6 @@
|
||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||
|
||||
export default EStyleSheet.create({
|
||||
btnConfirm: {
|
||||
color: '$iconColor',
|
||||
},
|
||||
btnTextCancel: {
|
||||
color: '$iconColor',
|
||||
},
|
||||
|
@ -56,17 +56,16 @@ class DateTimePickerView extends PureComponent {
|
||||
if (type === 'date-time') {
|
||||
_type = date ? 'time' : 'date';
|
||||
_format = date ? 'HH:MM' : 'YYYY-MM-DD';
|
||||
_minDate = date ? null : moment();
|
||||
_minDate = date ? null : moment().format('YYYY-MM-DD');
|
||||
} else {
|
||||
_type = type;
|
||||
_format = type === 'date' ? 'YYYY-MM-DD' : 'HH:MM';
|
||||
_minDate = type === 'date' ? moment() : null;
|
||||
_minDate = type === 'date' ? moment().format('YYYY-MM-DD') : null;
|
||||
}
|
||||
|
||||
return (
|
||||
<DatePicker
|
||||
style={styles.picker}
|
||||
date={date}
|
||||
mode={_type}
|
||||
format={_format}
|
||||
minDate={_minDate}
|
||||
|
@ -19,6 +19,7 @@ export default class TitleAreaView extends Component {
|
||||
super(props);
|
||||
this.state = {
|
||||
text: props.value || null,
|
||||
height: 0,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user