From 8d564512808cb604bb2cbc14cc061d98fa954dda Mon Sep 17 00:00:00 2001 From: Rifqy Zacky Ariadhy Date: Sat, 5 Jan 2019 17:06:20 +0700 Subject: [PATCH] update: Wallet Page --- .../pages/Transaction/ItemList/index.js | 2 +- src/common/pages/Wallet/index.js | 31 ++++++++++--------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/src/common/pages/Transaction/ItemList/index.js b/src/common/pages/Transaction/ItemList/index.js index 115e69a..a335c29 100644 --- a/src/common/pages/Transaction/ItemList/index.js +++ b/src/common/pages/Transaction/ItemList/index.js @@ -39,7 +39,7 @@ export default class ItemList extends React.Component {

{data.name}

Price

-

{(+data.price).toFixed(0)} Points

+

{(+data.price).toFixed(0)} BTN Reward

Voucher Code

diff --git a/src/common/pages/Wallet/index.js b/src/common/pages/Wallet/index.js index 6d90dfe..edcff39 100644 --- a/src/common/pages/Wallet/index.js +++ b/src/common/pages/Wallet/index.js @@ -57,12 +57,12 @@ export default class WalletComponent extends React.Component { } componentDidMount() { - this.globalUI.openLoading(); - this.transactionStore.getAll().then(res => { - this.globalUI.closeLoading(); - }); - this.transactionStore.getAmount(); - this.bankStore.getByUserID('tesss'); + // this.globalUI.openLoading(); + // this.transactionStore.getAll().then(res => { + // this.globalUI.closeLoading(); + // }); + // this.transactionStore.getAmount(); + // this.bankStore.getByUserID('tesss'); // this.globalUI.closeLoading(); // this.authStore.getWallet(); } @@ -106,8 +106,8 @@ export default class WalletComponent extends React.Component { handleChange = (event, index, value) => this.setState({value}); render() { - const undeposit_fund = ; - const balance = ; + const voucher = ; + const points = ; const columns = [{ @@ -170,19 +170,22 @@ export default class WalletComponent extends React.Component {
- +
- +
:
- + + + +
} @@ -226,9 +229,9 @@ export default class WalletComponent extends React.Component { {/*primary={true}/>*/} } - label="Withdraw" - onClick={() => this.globalUI.showDialog(DIALOG.WALLET.WITHDRAW)} + icon={} + label="Top Up" + // onClick={() => this.globalUI.showDialog(DIALOG.WALLET.WITHDRAW)} primary={true}/>
}