Skip to content

Instantly share code, notes, and snippets.

@waltzaround
Created July 18, 2019 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waltzaround/031addfd2eede6206512edfb93d07b1d to your computer and use it in GitHub Desktop.
Save waltzaround/031addfd2eede6206512edfb93d07b1d to your computer and use it in GitHub Desktop.
export default () => [
{
key: 'habout',
text: 'About',
href: '/about'
},
{
key: 'horgs',
text: 'Organisations',
href: '/orgs'
},
{
key: 'activities',
href: '/activities',
text: 'Activities',
authRequired: true
},
{
key: 'hsecret',
href: '/secret',
text: 'Private',
authRequired: true
},
{
key: 'hsignin',
href: '/auth/sign-in',
text: 'Sign In',
anonymousOnly: true
},
{
key: 'hsignoff',
href: '/auth/sign-off',
text: 'Sign Out',
authRequired: true
},
{
key: 'submenuexample',
href: '/aaa',
text: 'Sub Menu',
type: 'submenu',
subMenuItems: [
{
key: 'submenuexampleitem1',
text: 'Sub Menu Item 1',
href: '/aaa/smenuitem1',
},
{
key: 'submenuexampleitem2',
text: 'Sub Menu Item 2',
href: '/aaa/smenuitem2',
},
{
key: 'submenuexampleitem3',
text: 'Sub Menu Item 3',
href: '/aaa/smenuitem3',
},
],
authRequired: true
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment