diff --git a/src/packages/application/router/index.tsx b/src/packages/application/router/index.tsx index 218a3cb5b..07892b02d 100644 --- a/src/packages/application/router/index.tsx +++ b/src/packages/application/router/index.tsx @@ -1,10 +1,7 @@ import { PropsWithChildren } from 'react'; import 'react-app-polyfill/stable'; -import { useLocation } from 'react-router-dom'; -import Auth from '../../auth/components/auth'; import { useOidc } from '../../auth/create-oidc'; -import { ADMIN } from '../../auth/roles'; import D from '../../i18n'; import { useAppContext } from '../app-context'; import Routes from './routes'; @@ -21,15 +18,9 @@ export const RBACLink = ({ children }: PropsWithChildren) => { } }; - const location = useLocation(); - const { - properties: { authorizationHost }, - } = useAppContext(); const { version } = useAppContext(); const footer = `${import.meta.env.VITE_NAME} - IHM ${import.meta.env.VITE_VERSION} - API ${version}`; - const isHomePage = location.pathname === '/'; - return ( <>
{children}
@@ -39,26 +30,12 @@ export const RBACLink = ({ children }: PropsWithChildren) => { application logo {footer}

-
- - - {isHomePage && ( - - {D.authentication.title} - - )} - -
+ ); diff --git a/src/packages/deprecated-locales/dictionary/app.ts b/src/packages/deprecated-locales/dictionary/app.ts index 789157924..a9ea64ffa 100644 --- a/src/packages/deprecated-locales/dictionary/app.ts +++ b/src/packages/deprecated-locales/dictionary/app.ts @@ -355,12 +355,6 @@ const dictionary = { fr: 'Sélectionner un rôle...', en: 'Select a role...', }, - - authorizationManagementTitle: { - fr: 'Habilitations', - en: 'Authorization', - }, - pickedUserAddTitle: { fr: 'Agents à ajouter', en: 'User to add', diff --git a/src/packages/i18n.ts b/src/packages/i18n.ts index 9c9a0ea67..ccfa8a230 100644 --- a/src/packages/i18n.ts +++ b/src/packages/i18n.ts @@ -16,10 +16,6 @@ const dictionary = { fr: 'Se connecter', en: 'Login', }, - title: { - fr: 'Habilitations', - en: 'Authorizations', - }, }, validationState: { validated: { diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index cd4efbb8d..a81b338dc 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -12,6 +12,7 @@ type ImportMetaEnv = { VITE_CONCEPTS_DOCUMENTATION: string VITE_OPERATIONS_DOCUMENTATION: string VITE_VALIDATION_OPERATION_SERIES_EXTRA_MANDATORY_FIELDS: string + VITE_DEV_TOOLS_ENABLED: string BASE_URL: string MODE: string DEV: boolean