diff --git a/src/common/pages/App/index.js b/src/common/pages/App/index.js index a53f39f..7faa8da 100644 --- a/src/common/pages/App/index.js +++ b/src/common/pages/App/index.js @@ -386,7 +386,7 @@ export default class App extends React.Component { src={applicationIcon}/> - + {/**/} {/* this.toggleDrawer()}>*/} {/**/} @@ -403,11 +403,11 @@ export default class App extends React.Component { {this.user.userGeolocation.ip} */} - Home + {/*Home*/} {/* - - - {this.props.appstate.wallet.data.wallet ? ( - - - - Voucher - - - - - - - this.setModalTopup(true)}>Add Voucher - - - ) : ''} - - - {this.props.appstate.wallet.data.wallet ? ( - - -

Profile

-
Please complete your profile
- -
-
- ) : ''} -
- - {this.props.appstate.wallet.data.wallet ? ( - - -

Credit Card

-
Please add your credit card
- -
-
- ) : ''} -
-
+ style={{marginTop: 0}}> @@ -223,71 +159,151 @@ class DashboardComponent extends React.Component { - - {/* -
-
-
-

- Popular Items -

- - - -
-
-
-
- -
-
-
-

- New Products -

- - - -
-
-
-
*/} + - -
-
-
-

- Voucher & Gift Card -

+ + {this.props.appstate.wallet.data.wallet ? ( + + + + Voucher + + + + + + + this.setModalTopup(true)}>Add Voucher + + + ) : ''} + - - { - (this.vouchersStore.list.length > 0) ? - this.vouchersStore.list.map((item, index) => { - return ( this.setState({isOpened: true, data: item})} key={index} span={6}> - - ) - }) - : ( - - ) - } - + + {this.props.appstate.wallet.data.wallet ? ( + + + + Profile + + + Please complete your profile + + + + console.log('Edit Profile')}>Edit Profile + + + ) : ''} + - this.setState({isOpened: false})} - onCancel={() => this.setState({isOpened: false})} - /> -
-
-
+ + {this.props.appstate.wallet.data.wallet ? ( + + + + Credit Card + + + Please add your credit card + + + + console.log('Edit Profile')}>Add Credit Card + + + ) : ''}
+ + + + + + December + + + {(this.vouchersStore.list.length > 0) ? + this.vouchersStore.list.map((item, index) => { + let image = get(item, 'images.logo', ''); + + if (!image.includes('http')) { + image = this.http.appendImagePath(image); + } + return ( + this.setState({isOpened: true, data: item})}> + {''}/ + by: {item.name}} + actionIcon={ + + + + } + /> + + ) + }) : () + } + + + {/**/} + {/*
*/} + {/*
*/} + {/*
*/} + {/*

*/} + {/*Voucher & Gift Card*/} + {/*

*/} + + {/**/} + {/*{*/} + {/*(this.vouchersStore.list.length > 0) ?*/} + {/*this.vouchersStore.list.map((item, index) => {*/} + {/*return ( this.setState({isOpened: true, data: item})} key={index} span={6}>*/} + {/**/} + {/*)*/} + {/*})*/} + {/*: (*/} + {/**/} + {/*)*/} + {/*}*/} + {/**/} + + {/* this.setState({isOpened: false})}*/} + {/*onCancel={() => this.setState({isOpened: false})}*/} + {/*/>*/} + {/*
*/} + {/*
*/} + {/*
*/} + {/*
*/} +
+ this.setState({isOpened: false})} + onCancel={() => this.setState({isOpened: false})} + /> this.setModalTopup(false)} onCancel={() => this.setModalTopup(false)} isVisible={this.state.modalTopup}/>
);