add strategizer to nav
This commit is contained in:
1 parent
5197ed3163
commit
4b0891b3b6
3 files changed
+28
-4
No files matched your search
@@ -20,6 +20,7 @@ import Events from '@advancedalgos/events-client'
|
||||
import KeyVault from '@superalgos/key-vault-client'
|
||||
import FinancialBeings from '@advancedalgos/financial-beings-client'
|
||||
import Operations from '@superalgos/operations-client'
|
||||
import Strategizer from '@superalgos/strategizer-client'
|
||||
|
||||
export const auth = new Auth(
|
||||
result => console.log('Authentication successful.'),
|
||||
@@ -81,6 +82,10 @@ export const MasterApp = props => (
|
||||
path='/operations'
|
||||
render={props => <Operations {...props} auth={auth} />}
|
||||
/>
|
||||
<Route
|
||||
path='/strategizer'
|
||||
render={props => <Strategizer {...props} auth={auth} />}
|
||||
/>
|
||||
</Switch>
|
||||
</Layout>
|
||||
</MuiThemeProvider>
|
||||
|
||||
@@ -49,7 +49,8 @@ export const defaultOptions = {
|
||||
languageDictionary: {
|
||||
title: 'Superalgos Platform'
|
||||
},
|
||||
avatar: null
|
||||
avatar: null,
|
||||
mustAcceptTerms: true
|
||||
}
|
||||
|
||||
export const inviteOptions = {
|
||||
@@ -67,7 +68,12 @@ export const inviteOptions = {
|
||||
scope: `email`
|
||||
}
|
||||
},
|
||||
prefill: { email: '' }
|
||||
prefill: { email: '' },
|
||||
languageDictionary: {
|
||||
title: 'Superalgos Platform'
|
||||
},
|
||||
avatar: null,
|
||||
mustAcceptTerms: true
|
||||
}
|
||||
|
||||
let lock = new Auth0Lock(
|
||||
|
||||
@@ -10,7 +10,8 @@ import {
|
||||
// Adb,
|
||||
VpnKey,
|
||||
Home,
|
||||
AddCircleOutline
|
||||
AddCircleOutline,
|
||||
ViewModule
|
||||
} from '@material-ui/icons'
|
||||
|
||||
const usersMenus = {
|
||||
@@ -85,13 +86,25 @@ const financialBeingsMenus = {
|
||||
]
|
||||
}
|
||||
|
||||
const strategizerMenus = {
|
||||
title: 'Strategizer',
|
||||
to: '/strategizer',
|
||||
icon: Home,
|
||||
authenticated: false,
|
||||
submenus: [
|
||||
{ title: 'Your strategies', to: '/strategizer/manage-strategies', icon: ViewModule, authenticated: false },
|
||||
{ title: 'Report a Bug', to: 'https://github.com/Superalgos/StrategizerClientModule/issues/new', icon: BugReport, externalLink: true }
|
||||
]
|
||||
}
|
||||
|
||||
const allMenus = [
|
||||
usersMenus,
|
||||
teamsMenus,
|
||||
// eventsMenus,
|
||||
// financialBeingsMenus,
|
||||
keyvaultMenus,
|
||||
operationsMenus
|
||||
operationsMenus,
|
||||
strategizerMenus
|
||||
]
|
||||
|
||||
export default allMenus
|
||||
Reference in new issue
Block a user