mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
updated side bar changes
This commit is contained in:
parent
1f8f9544fb
commit
7de1ff14f5
@ -39,11 +39,16 @@ class SideMenuView extends Component {
|
||||
// Component Life Cycles
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
const { isLoggedIn } = this.props;
|
||||
const { isLoggedIn, accounts } = this.props;
|
||||
const { isAddAccountIconActive } = this.state;
|
||||
|
||||
if (isLoggedIn !== nextProps.isLoggedIn) {
|
||||
this._setMenuItems(nextProps.isLoggedIn);
|
||||
}
|
||||
|
||||
if (accounts !== nextProps.accounts && isAddAccountIconActive) {
|
||||
this.setState({ menuItems: nextProps.accounts });
|
||||
}
|
||||
}
|
||||
|
||||
// Component Functions
|
||||
|
@ -366,6 +366,8 @@ class EditorContainer extends Component {
|
||||
key: permlink,
|
||||
});
|
||||
|
||||
this.setState({ isPostSending: false });
|
||||
|
||||
setDraftPost(
|
||||
{ title: '', body: '', tags: '' },
|
||||
currentAccount.name,
|
||||
@ -485,6 +487,8 @@ class EditorContainer extends Component {
|
||||
navigation.goBack();
|
||||
navigation.state.params.fetchPost();
|
||||
}
|
||||
|
||||
this.setState({ isPostSending: false });
|
||||
};
|
||||
|
||||
_handleOnBackPress = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user