diff --git a/frontend/src/component/admin/api/index.tsx b/frontend/src/component/admin/api/index.tsx index fa2a0c16f9..f735e39662 100644 --- a/frontend/src/component/admin/api/index.tsx +++ b/frontend/src/component/admin/api/index.tsx @@ -1,16 +1,19 @@ -import { ApiTokenList } from '../apiToken/ApiTokenList/ApiTokenList'; import AdminMenu from '../menu/AdminMenu'; import ConditionallyRender from 'component/common/ConditionallyRender'; -import AccessContext from 'contexts/AccessContext'; -import { useContext } from 'react'; +import { ApiTokenPage } from 'component/admin/apiToken/ApiTokenPage/ApiTokenPage'; +import { useLocation } from 'react-router-dom'; const ApiPage = () => { - const { isAdmin } = useContext(AccessContext); + const { pathname } = useLocation(); + const showAdminMenu = pathname.includes('/admin/'); return (
- Read the{' '} - - Getting started guide - {' '} - to learn how to connect to the Unleash API from your - application or programmatically. Please note it can take - up to 1 minute before a new API key is activated. -
+
-                        {uiConfig.unleashUrl}/api/
-                    
-                
-
-                {delToken?.username}
+                        {delToken?.type}
+                        {delToken?.username}
-                            {delToken?.type}
-                            + Read the{' '} + + Getting started guide + {' '} + to learn how to connect to the Unleash API from your + application or programmatically. Please note it can take up + to 1 minute before a new API key is activated. +
+
+                    {uiConfig.unleashUrl}/api/
+                
+