8e6ce3a813
Fixes #2275
27 lines
642 B
JavaScript
27 lines
642 B
JavaScript
import { frontendURL } from '../../helper/URLHelper';
|
|
|
|
const contacts = accountId => ({
|
|
routes: [
|
|
'contacts_dashboard',
|
|
'contact_profile_dashboard',
|
|
'contacts_labels_dashboard',
|
|
],
|
|
menuItems: {
|
|
back: {
|
|
icon: 'ion-ios-arrow-back',
|
|
label: 'HOME',
|
|
hasSubMenu: false,
|
|
toStateName: 'home',
|
|
toState: frontendURL(`accounts/${accountId}/dashboard`),
|
|
},
|
|
contacts: {
|
|
icon: 'ion-person',
|
|
label: 'ALL_CONTACTS',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/contacts`),
|
|
toStateName: 'contacts_dashboard',
|
|
},
|
|
},
|
|
});
|
|
|
|
export default contacts;
|