RN-232 Fix cannot leave edit post screen when edit fails (#673)
This commit is contained in:
parent
6c03d3b8e6
commit
675eca630c
1 changed files with 5 additions and 3 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue