fixed bug

This commit is contained in:
ue 2018-11-02 15:18:18 +03:00
parent c0bb882a07
commit 121d45c0f9
3 changed files with 7 additions and 2 deletions

View File

@ -10,9 +10,10 @@ import Tag from './view/tagView';
import TextWithIcon from './view/textWithIconView';
import WalletLineItem from './view/walletLineItemView';
import StickyBar from './view/stickyBarView';
import Card from './view/cardView';
export {
// Card,
Card,
StickyBar,
Chip,
GrayWrapper,

View File

@ -26,6 +26,7 @@ class WalletDetailsView extends Component {
render() {
const { balance } = this.props;
return (
<View>
<WalletLineItem

View File

@ -16,6 +16,7 @@ import { Wallet } from '../../../components/wallet';
// Utilitites
import { getFormatedCreatedDate } from '../../../utils/time';
import { getRcPower, getVotingPower } from '../../../utils/manaBar';
import parseToken from '../../../utils/parseToken';
// Styles
import styles from './profileStyles';
@ -143,7 +144,9 @@ class ProfileScreen extends Component {
/>
)}
</View>
<View tabLabel={user && user.balance ? `$${user && user.balance}` : 'Wallet'}>
<View
tabLabel={user && user.balance ? `$${user && parseToken(user.balance)}` : 'Wallet'}
>
<Wallet user={user} />
</View>
</ScrollableTabView>