File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { Provider } from "react-redux";
66import LocalizationProvider from "../../js/components/LocalizationProvider" ;
77import { STREAMGRAPH_MODE } from "../../js/reducers/chartType" ;
88import { formatString } from "../../js/utils/string" ;
9+ import { Localization } from "../../js/i18n/localization" ;
910
1011// Configuring the mock Redux store
1112const mockStore = configureStore ( [ ] ) ;
@@ -60,10 +61,11 @@ const getCitationText = (isStreamgraph: boolean) => {
6061const setup = ( isStreamgraph : boolean ) => {
6162 const mockStoreData = getMockStoreData ( isStreamgraph ) ;
6263 const store = mockStore ( mockStoreData ) ;
64+ const localization = mockStoreData . localization as Localization ;
6365
6466 render (
6567 < Provider store = { store } >
66- < LocalizationProvider localization = { mockStoreData . localization } >
68+ < LocalizationProvider localization = { localization } >
6769 < CitationModal />
6870 </ LocalizationProvider >
6971 </ Provider >
You can’t perform that action at this time.
0 commit comments