RN-232 Fix cannot leave edit post screen when edit fails (#673)

This commit is contained in:
enahum 2017-06-26 15:12:42 -04:00 committed by Harrison Healey
parent 6c03d3b8e6
commit 675eca630c

View file

@ -88,14 +88,14 @@ class EditPost extends PureComponent {
emitCanEditPost = (enabled) => {
this.props.navigator.setButtons({
leftButtons: [this.leftButton],
leftButtons: [{...this.leftButton, icon: this.props.closeButton}],
rightButtons: [{...this.rightButton, disabled: !enabled}]
});
};
emitEditing = (loading) => {
this.props.navigator.setButtons({
leftButtons: [this.leftButton],
leftButtons: [{...this.leftButton, icon: this.props.closeButton}],
rightButtons: [{...this.rightButton, disabled: loading}]
});
};
@ -219,8 +219,10 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => {
flex: 1,
backgroundColor: changeOpacity(theme.centerChannelColor, 0.03)
},
errorContainer: {
paddingHorizontal: 10
},
errorWrapper: {
justifyContent: 'center',
alignItems: 'center'
},
inputContainer: {