-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathindex.js
More file actions
55 lines (49 loc) · 1.27 KB
/
index.js
File metadata and controls
55 lines (49 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import React from 'react'
import AuthNListPage from './AuthNListPage'
import { useTranslation } from 'react-i18next'
import GluuTabs from 'Routes/Apps/Gluu/GluuTabs'
import { Card } from 'Components'
import applicationStyle from 'Routes/Apps/Gluu/styles/applicationstyle'
import { useSelector } from 'react-redux'
import AgamaListPage from '../Agama/AgamaListPage'
import AliasesListPage from '../Agama/AgamaAliasListPage'
function AuthNPage() {
const { t } = useTranslation()
const tabNames = [
{
name: t('menus.builtIn'),
path: ''
},
{ name: t('menus.acrs'), path: '' },
{
name: t('menus.aliases'),
path: ''
},
{
name: t('menus.agama_flows'),
path: ''
}
]
const tabToShow = tabName => {
switch (tabName) {
case t('menus.builtIn'):
return <AuthNListPage isBuiltIn={true} />
case t('menus.acrs'):
return <AuthNListPage />
case t('menus.agama_flows'):
return <AgamaListPage />
case t('menus.aliases'):
return <AliasesListPage />
}
}
return (
<Card className="mb-3" style={applicationStyle.mainCard}>
<GluuTabs
tabNames={tabNames}
tabToShow={tabToShow}
withNavigation={true}
/>
</Card>
)
}
export default AuthNPage