From 484b0d07659be269c117078f47c719200e509623 Mon Sep 17 00:00:00 2001 From: Pramod S Date: Tue, 5 Sep 2023 15:43:12 +0200 Subject: [PATCH] updated translation according to FDX config so as to overcome I18nWrapper issue --- react-components/src/common/i18n/index.tsx | 2 +- react-components/src/components/RevealToolbar/RevealToolbar.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react-components/src/common/i18n/index.tsx b/react-components/src/common/i18n/index.tsx index 41918fd3cbd..0dfe64a7e13 100644 --- a/react-components/src/common/i18n/index.tsx +++ b/react-components/src/common/i18n/index.tsx @@ -12,4 +12,4 @@ export const translations = { export type TranslationKeys = keyof typeof en; export const useTranslation = (): ReturnType> => - useTypedTranslation(); + useTypedTranslation('reveal-react-components'); diff --git a/react-components/src/components/RevealToolbar/RevealToolbar.tsx b/react-components/src/components/RevealToolbar/RevealToolbar.tsx index c51441e2594..75c453edb8d 100644 --- a/react-components/src/components/RevealToolbar/RevealToolbar.tsx +++ b/react-components/src/components/RevealToolbar/RevealToolbar.tsx @@ -59,7 +59,7 @@ const RevealToolbarContainer = ( props = { ...props, ...defaultStyle }; } return ( - + {props.toolBarContent ?? } );