diff --git a/src/common/pages/App/index.js b/src/common/pages/App/index.js index 824151f..3236cc7 100644 --- a/src/common/pages/App/index.js +++ b/src/common/pages/App/index.js @@ -316,57 +316,59 @@ export default class App extends React.Component { // const applicationIcon = (this.settingStore.isIconEmpty) ? "/assets/images/logo_ikan.png" : this.http.appendImagePath(this.settingStore.setting.icon); const applicationIcon = "/assets/images/logo_ikan.png"; - let onNotifRowClick = (record)=>{ + let onNotifRowClick = (record) => { // if(record.notification.type == 'order_seller' && _.get(record,'notification.additional_data.user_order_store_id',false) != false){ // return `${LINKS.ORDER}/${record.notification.additional_data.user_order_store_id}`; // } // else if(record.notification.type == 'order_seller' && _.get(record,'notification.additional_data.user_order_store_id',false) == false){ // return `${LINKS.ORDER}`; // } - return `${LINKS.ORDER}`; + return `${LINKS.ORDER}`; } return ( -
- - - Marketplace - - - +
+ + + Marketplace + + + - - + + - -
- -
-
- - + +
+ +
+
+ + - - - this.toggleDrawer()}> + + + this.toggleDrawer()}> - {/* */} - + - - this.toggleDrawer()}> - - - {/* */} - } - className={(this.state.selectedMenu === '/app/dashboard') ? "menuAkunItem active" : 'menuAkunItem'}>Dashboard + } + className={(this.state.selectedMenu === '/app/dashboard') ? "menuAkunItem active" : 'menuAkunItem'}>Dashboard - } - className={(this.state.selectedMenu === '/app/flight') ? "menuAkunItem active" : 'menuAkunItem'}>Flight + } + className={(this.state.selectedMenu === '/app/flight') ? "menuAkunItem active" : 'menuAkunItem'}>Flight - } - className={(this.state.selectedMenu === '/app/hotel') ? "menuAkunItem active" : 'menuAkunItem'}>Hotel + } + className={(this.state.selectedMenu === '/app/hotel') ? "menuAkunItem active" : 'menuAkunItem'}>Hotel - } - className={(this.state.selectedMenu === '/app/car') ? "menuAkunItem active" : 'menuAkunItem'}>Car + } + className={(this.state.selectedMenu === '/app/car') ? "menuAkunItem active" : 'menuAkunItem'}>Car - } - className={(this.state.selectedMenu === '/app/shop') ? "menuAkunItem active" : 'menuAkunItem'}>Shop + } + className={(this.state.selectedMenu === '/app/shop') ? "menuAkunItem active" : 'menuAkunItem'}>Shop - } - className={(this.state.selectedMenu === '/app/vouchers') ? "menuAkunItem active" : 'menuAkunItem'}>Vouchers + } + className={(this.state.selectedMenu === '/app/vouchers') ? "menuAkunItem active" : 'menuAkunItem'}>Vouchers - {/* */} - - - this.notificationStore.readAll()} - iconButtonElement={ -
- {userData.role === 'admin' ? ( -
- {this.notificationStore.unread_notif === 0 ? - - - : - - - - - - } -
- ) : ( -
- {this.notificationStore.unread_notif === 0 ? - - - : - - - - - - } -
- )} - + + +
+
+

Voucher

+

+ +

+
+
+

Points

+

+ +

+
- } - > - - { - (this.notificationStore.list.length) ? - this.notificationStore.list.slice(0, 5).map((item, index) => { - return ( - - } - primaryText={item.notification.title} - secondaryText={ -
-

- {item.notification.description.substr(0,40)}{(item.notification.description.length > 40) ? '...' : ""} -

-

{moment(item.created_at).fromNow()}

-
- } - secondaryTextLines={2} - /> - - ); - }) : - } - - -

View All

-
- } - /> - - -
- this.notificationStore.readAll()} - iconButtonElement={ -
- {userData.role === 'admin' ? ( + this.notificationStore.readAll()} + iconButtonElement={
- {this.notificationStore.unread_notif === 0 ? - - - : - - - - - - } -
- ) : ( -
- {this.notificationStore.unread_notif === 0 ? - - - : - - - - - - } -
- )} - -
- } - > - - { - (this.notificationStore.list.length) ? - this.notificationStore.list.slice(0, 5).map((item, index) => { - return ( - - } - primaryText={item.notification.title} - secondaryText={ -
-

- {item.notification.description.substr(0,40)}{(item.notification.description.length > 40) ? '...' : ""} -

-

{moment(item.created_at).fromNow()}

-
+ {userData.role === 'admin' ? ( +
+ {this.notificationStore.unread_notif === 0 ? + + + : + + + + + } - secondaryTextLines={2} - /> - - ); - }) : - } - - -

View All

- } - /> - -
-
+ ) : ( +
+ {this.notificationStore.unread_notif === 0 ? + + + : + + + + + + } +
+ )} - - {!!this.profileStore.userProfile.photo? - : +
} + > + + { + (this.notificationStore.list.length) ? + this.notificationStore.list.slice(0, 5).map((item, index) => { + return ( + + } + primaryText={item.notification.title} + secondaryText={ +
+

+ {item.notification.description.substr(0, 40)}{(item.notification.description.length > 40) ? '...' : ""} +

+

{moment(item.created_at).fromNow()}

+
+ } + secondaryTextLines={2} + /> + + ); + }) : + } + + +

View All

+
+ } + /> + + + - - } - > - {this.authStore.userProfile.username || 'Username'}} - secondaryText={

{_.capitalize(this.authStore.userProfile.role) || 'role'}

} - /> -
- - - - - - - + this.notificationStore.readAll()} + iconButtonElement={ +
+ {userData.role === 'admin' ? ( +
+ {this.notificationStore.unread_notif === 0 ? + + + : + + + + + + } +
+ ) : ( +
+ {this.notificationStore.unread_notif === 0 ? + + + : + + + + + + } +
+ )} -
-
- -
+
+ } + > + + { + (this.notificationStore.list.length) ? + this.notificationStore.list.slice(0, 5).map((item, index) => { + return ( + + } + primaryText={item.notification.title} + secondaryText={ +
+

+ {item.notification.description.substr(0, 40)}{(item.notification.description.length > 40) ? '...' : ""} +

+

{moment(item.created_at).fromNow()}

+
+ } + secondaryTextLines={2} + /> + + ); + }) : + } + + +

View All

+
+ } + /> + + +
- -
+ + {!!this.profileStore.userProfile.photo ? + : + } + + + } + > + {this.authStore.userProfile.username || 'Username'}} + secondaryText={

{_.capitalize(this.authStore.userProfile.role) || 'role'}

} + /> +
+ + + + +
+ + + +
+
+ +
+ +
+
); } diff --git a/src/common/pages/App/style.scss b/src/common/pages/App/style.scss index 7170d09..3125f11 100644 --- a/src/common/pages/App/style.scss +++ b/src/common/pages/App/style.scss @@ -1,4 +1,43 @@ .app-container { + + .containerWalletBar{ + display: flex; + flex-direction: row; + justify-content: space-between; + width: 11vw; + height: 70px; + align-items: center; + margin-right: 15px; + + .containerVoucher{ + + .titleVoucher{ + margin-bottom: 0px; + font-size: 0.65rem; + } + + .textVoucher{ + margin-bottom: 0px; + font-weight: 600; + color: #424770; + } + } + + .containerPoints{ + + .titlePoints{ + margin-bottom: 0px; + font-size: 0.65rem; + } + + .textPoints{ + margin-bottom: 0px; + font-weight: 600; + color: #424770; + } + } + } + .mainContent { width: calc(100vw - 14vw); margin-left: 2.5vw;