diff --git a/admin-ui/plugins/auth-server/components/AuthN/index.js b/admin-ui/plugins/auth-server/components/AuthN/index.js index 655e805c90..c746100d58 100644 --- a/admin-ui/plugins/auth-server/components/AuthN/index.js +++ b/admin-ui/plugins/auth-server/components/AuthN/index.js @@ -1,47 +1,45 @@ -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 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"; +import { useSelector } from 'react-redux' +import AgamaListPage from '../Agama/AgamaListPage' +import AliasesListPage from '../Agama/AgamaAliasListPage' function AuthNPage() { - const { t } = useTranslation(); - const isLoading = useSelector((state) => state.cacheRefreshReducer.loading); + const { t } = useTranslation() const tabNames = [ { - name: t("menus.builtIn"), - path: "", + name: t('menus.builtIn'), + path: '' }, - { name: t("menus.acrs"), path: "" }, + { name: t('menus.acrs'), path: '' }, { - name: t("menus.aliases"), - path: "", + name: t('menus.aliases'), + path: '' }, { - name: t("menus.agama_flows"), - path: "", - }, - - ]; + name: t('menus.agama_flows'), + path: '' + } + ] - const tabToShow = (tabName) => { + const tabToShow = tabName => { switch (tabName) { - case t("menus.builtIn"): - return ; - case t("menus.acrs"): - return ; - case t("menus.agama_flows"): - return ; - case t("menus.aliases"): - return ; + case t('menus.builtIn'): + return + case t('menus.acrs'): + return + case t('menus.agama_flows'): + return + case t('menus.aliases'): + return } - }; + } return ( @@ -51,7 +49,7 @@ function AuthNPage() { withNavigation={true} /> - ); + ) } -export default AuthNPage; +export default AuthNPage