diff --git a/src/features/AuthServiceApp/components/Login/index.tsx b/src/features/AuthServiceApp/components/Login/index.tsx index 6d7ce49c..867a686f 100644 --- a/src/features/AuthServiceApp/components/Login/index.tsx +++ b/src/features/AuthServiceApp/components/Login/index.tsx @@ -1,6 +1,7 @@ import { T9n } from 'features/T9n' import { ArrowLoader } from 'features/ArrowLoader' import { RecoveryPopup } from 'features/AuthServiceApp/components/RecoveryPopup' +import { client } from 'features/AuthServiceApp/config/clients' import { PAGES } from '../../config/pages' import { LanguageSelect } from '../LanguageSelect' @@ -123,7 +124,11 @@ const Login = () => { - + ) } diff --git a/src/features/AuthServiceApp/components/Registration/index.tsx b/src/features/AuthServiceApp/components/Registration/index.tsx index de2fe192..71674bdd 100644 --- a/src/features/AuthServiceApp/components/Registration/index.tsx +++ b/src/features/AuthServiceApp/components/Registration/index.tsx @@ -138,7 +138,11 @@ const Registration = () => { /> - + ) } diff --git a/src/features/CompanyInfo/index.tsx b/src/features/CompanyInfo/index.tsx index 9e20974a..7ce6a328 100644 --- a/src/features/CompanyInfo/index.tsx +++ b/src/features/CompanyInfo/index.tsx @@ -4,7 +4,6 @@ import { T9n } from 'features/T9n' import { useLexicsConfig } from 'features/LexicsStore' import { PAGES } from 'config' -import { client } from 'config/clients' import { ClientNames } from 'config/clients/types' import { @@ -15,18 +14,20 @@ import { import { lexics } from './config' export type TCompanyInfo = { + clientName: ClientNames, textAlign?: 'center' | 'left', width?: string, } export const CompanyInfo = ({ + clientName, textAlign = 'left', width = '100%', }: TCompanyInfo) => { useLexicsConfig(lexics) const companyInfoContent = useMemo(() => { - switch (client.name) { + switch (clientName) { case ClientNames.Facr: return ( @@ -62,7 +63,7 @@ export const CompanyInfo = ({ ) } - }, []) + }, [clientName]) return ( diff --git a/src/features/UserAccount/index.tsx b/src/features/UserAccount/index.tsx index 6a0b8090..58ef34b2 100644 --- a/src/features/UserAccount/index.tsx +++ b/src/features/UserAccount/index.tsx @@ -106,7 +106,7 @@ const UserAccount = () => { - + {client.name !== 'instat' && } diff --git a/src/pages/HighlightsPage/index.tsx b/src/pages/HighlightsPage/index.tsx index 15e9e949..f6bed6b4 100644 --- a/src/pages/HighlightsPage/index.tsx +++ b/src/pages/HighlightsPage/index.tsx @@ -3,6 +3,7 @@ import { Link } from 'react-router-dom' import { isMobileDevice } from 'config/userAgent' import { PAGES } from 'config' +import { client } from 'config/clients' import { isBoolean } from 'lodash' @@ -78,7 +79,7 @@ const HighlightsPage = () => { - +