diff --git a/src/common/pages/App/index.js b/src/common/pages/App/index.js index 2bf011c..8d46890 100644 --- a/src/common/pages/App/index.js +++ b/src/common/pages/App/index.js @@ -26,6 +26,7 @@ import { Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle, Badge } from 'material-ui'; import IconUserCircle from 'material-ui/svg-icons/action/account-circle'; +import ShoppingCart from 'material-ui/svg-icons/action/shopping-cart'; import DepositDialog from './../DepositDialog'; import WithdrawDialog from './../WithdrawDialog'; import IconMenus from 'material-ui/svg-icons/navigation/menu'; @@ -339,41 +340,41 @@ export default class App extends React.Component { message={this.globalUI.snackbarMessage} autoHideDuration={3000}/> - {/**/} - {/*
*/} - {/**/} - {/*
*/} - {/**/} - {/**/} - {/**/} + +
+ +
+
+ + this.toggleDrawer()}> - {/**/} + {/* */} - {/* this.toggleDrawer()}>*/} - {/**/} - {/**/} - {/**/} + this.toggleDrawer()}> + + + {/* - {/**/} + */} Vouchers - {/**/} + {/* - {/**/} + */} - {/**/} - {/*this.notificationStore.readAll()}*/} - {/*iconButtonElement={*/} - {/*
*/} - {/*{userData.role === 'admin' ? (*/} - {/*
*/} - {/*{this.notificationStore.unread_notif === 0 ?*/} - {/**/} - {/**/} - {/* :*/} - {/**/} - {/**/} - {/**/} - {/**/} - {/**/} - {/*}*/} - {/*
*/} - {/*) : (*/} - {/*
*/} - {/*{this.notificationStore.unread_notif === 0 ?*/} - {/**/} - {/**/} - {/* :*/} - {/**/} - {/**/} - {/**/} - {/**/} - {/**/} - {/*}*/} - {/*
*/} - {/*)}*/} + + 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.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.notificationStore.readAll()} + iconButtonElement={ +
+ {userData.role === 'admin' ? ( +
+ {this.notificationStore.unread_notif === 0 ? + + + : + + + + + + } +
+ ) : ( +
+ {this.notificationStore.unread_notif === 0 ? + + + : + + + + + + } +
+ )} - {/**/} - {/*}*/} - {/*>*/} - {/*{this.authStore.userProfile.username || 'Username'}}*/} - {/*secondaryText={

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

}*/} - {/*/>*/} - {/*
*/} - {/**/} - {/* */} - {/**/} - {/**/} - {/**/} +
+ } + > + + { + (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'}

} + /> +
+ + + +
+