MM-54004 migrate HeaderFooterNotLoggedIn as functional component (#24244)

* chore: MM-54004 migrate HeaderFooterNotLoggedIn as functional component

* fix about and HA links
Этот коммит содержится в:
Saturnino Abril
2023-08-14 06:48:19 -04:00
коммит произвёл GitHub
родитель e9b3afecc2
Коммит a93a01fa8f
8 изменённых файлов: 601 добавлений и 453 удалений

Просмотреть файл

@@ -26,7 +26,7 @@ export const renderWithIntl = (component: React.ReactNode | React.ReactNodeArray
return render(<IntlProvider locale={locale}>{component}</IntlProvider>);
};
export const renderWithIntlAndStore = (component: React.ReactNode | React.ReactNodeArray, initialState: DeepPartial<GlobalState> = {}, locale = 'en') => {
export const renderWithIntlAndStore = (component: React.ReactNode | React.ReactNodeArray, initialState: DeepPartial<GlobalState> = {}, locale = 'en', divContainer?: HTMLDivElement) => {
// We use a redux-mock-store store for testing, but we set up a real store to ensure the initial state is complete
const realStore = configureStore(initialState);
@@ -38,6 +38,7 @@ export const renderWithIntlAndStore = (component: React.ReactNode | React.ReactN
{component}
</Provider>
</IntlProvider>,
{container: divContainer},
);
};