8b4134c790
* fix: Display rolewise primary sidebar * Fix issues with roles * Fix active style * Fix accessible menu * Fix key missing * Changes menu icon size Co-authored-by: Nithin David <1277421+nithindavid@users.noreply.github.com>
26 lines
685 B
JavaScript
26 lines
685 B
JavaScript
import { frontendURL } from '../../../../helper/URLHelper';
|
|
|
|
const campaigns = accountId => ({
|
|
parentNav: 'campaigns',
|
|
routes: ['settings_account_campaigns', 'one_off'],
|
|
menuItems: [
|
|
{
|
|
icon: 'arrow-swap',
|
|
label: 'ONGOING',
|
|
key: 'ongoingCampaigns',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/campaigns/ongoing`),
|
|
toStateName: 'settings_account_campaigns',
|
|
},
|
|
{
|
|
key: 'oneOffCampaigns',
|
|
icon: 'sound-source',
|
|
label: 'ONE_OFF',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/campaigns/one_off`),
|
|
toStateName: 'one_off',
|
|
},
|
|
],
|
|
});
|
|
|
|
export default campaigns;
|