revert back

This commit is contained in:
u-e 2019-03-18 21:40:24 +03:00
parent 7057f0ba2c
commit 1de5e534df
2 changed files with 2 additions and 13 deletions

View File

@ -44,14 +44,12 @@ class ProfileContainer extends Component {
isReverseHeader,
user: null,
selectedQuickProfile: null,
activeTab: 0,
};
}
componentDidMount = () => {
const { navigation, isLoggedIn, currentAccount } = this.props;
const selectedUser = navigation.state && navigation.state.params;
const { isWalletTab } = navigation.state && navigation.state.params;
if (!isLoggedIn && !selectedUser) {
navigation.navigate(ROUTES.SCREENS.LOGIN);
@ -74,10 +72,6 @@ class ProfileContainer extends Component {
} else {
this._loadProfile(currentAccount.name);
}
if (isWalletTab) {
this.setState({ activeTab: 2 });
}
};
componentWillReceiveProps(nextProps) {
@ -334,14 +328,12 @@ class ProfileContainer extends Component {
selectedQuickProfile,
user,
username,
activeTab,
} = this.state;
const { isDarkTheme, isLoggedIn, currency } = this.props;
return (
<ProfileScreen
about={user && user.about && user.about.profile}
activeTab={activeTab}
avatar={avatar}
comments={comments}
currency={currency}

View File

@ -84,7 +84,6 @@ class ProfileScreen extends PureComponent {
selectedQuickProfile,
selectedUser,
username,
activeTab,
} = this.props;
const {
@ -120,9 +119,8 @@ class ProfileScreen extends PureComponent {
if (estimatedWalletValue) {
const { currencyRate, currencySymbol } = currency;
_estimatedWalletValue = `${currencySymbol} ${(
estimatedWalletValue * currencyRate
).toFixed()}`;
_estimatedWalletValue = `${currencySymbol} ${(estimatedWalletValue * currencyRate).toFixed(
)}`;
}
return (
@ -179,7 +177,6 @@ class ProfileScreen extends PureComponent {
)}
<ScrollableTabView
initialPage={activeTab || 0}
style={[globalStyles.tabView, styles.tabView]}
renderTabBar={() => (
<TabBar style={styles.tabbar} tabUnderlineDefaultWidth={80} tabUnderlineScaleX={2} />