mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 21:01:31 +03:00
revert back
This commit is contained in:
parent
7057f0ba2c
commit
1de5e534df
@ -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}
|
||||
|
@ -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} />
|
||||
|
Loading…
Reference in New Issue
Block a user