;
+ const data = [
+ {
+ id: faker.random.uuid(),
+ created_at: faker.date.past(),
+ type: 'Points',
+ amount: faker.commerce.price()
+ },
+ {
+ id: faker.random.uuid(),
+ created_at: faker.date.past(),
+ type: 'Points',
+ amount: faker.commerce.price()
+ },
+ {
+ id: faker.random.uuid(),
+ created_at: faker.date.past(),
+ type: 'Voucher',
+ amount: faker.commerce.price()
+ },
+ {
+ id: faker.random.uuid(),
+ created_at: faker.date.past(),
+ type: 'Voucher',
+ amount: faker.commerce.price()
+ },
+ {
+ id: faker.random.uuid(),
+ created_at: faker.date.past(),
+ type: 'Points',
+ amount: faker.commerce.price()
+ },
+ ];
const columns = [{
title: 'Id',
@@ -133,25 +120,26 @@ export default class WalletComponent extends React.Component {
dataIndex: 'type',
key: 'type',
className: 'recentOrder-noOrder',
- render: (text) => {text.name}
- },
-
- {
- title: 'Status',
- dataIndex: 'status',
- key: 'status',
- className: 'recentOrder-status',
- render: (text) => {text === 'created' ? 'Waiting Approval' : startCase(text)}
+ render: (text) => {text}
},
+ // {
+ // title: 'Status',
+ // dataIndex: 'status',
+ // key: 'status',
+ // className: 'recentOrder-status',
+ // render: (text) => {text === 'created' ? 'Waiting Approval' : startCase(text)}
+ // },
{
title: 'Amount',
dataIndex: 'amount',
key: 'amount',
className: 'recentOrder-customer bolder green',
render: (text) => {
- return
+ return
+
+
}
@@ -165,30 +153,18 @@ export default class WalletComponent extends React.Component {
Wallet
- {
- (this.transactionStore.saldo.length === 2) ?
-
- :
-
-
-
-
-
-
-
-
- }
+
@@ -196,7 +172,7 @@ export default class WalletComponent extends React.Component {
-
}
+ }
messageStyle={{textAlign: 'center'}}
backgroundStyle={{backgroundColor: 'rgba(255,255,255,0.5)'}}>
{`
// return {
diff --git a/src/common/pages/Wallet/style.scss b/src/common/pages/Wallet/style.scss
index 0cdb30e..ed361e0 100644
--- a/src/common/pages/Wallet/style.scss
+++ b/src/common/pages/Wallet/style.scss
@@ -1,5 +1,10 @@
.wallet {
margin-top: 35px;
+
+ .tableWallet{
+ padding: 15px;
+ }
+
.container {
padding: 25px;