Skip to content

Commit

Permalink
Changes to update react to v18 (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
constanzauanini authored Apr 23, 2024
1 parent ff67408 commit 7932b34
Show file tree
Hide file tree
Showing 437 changed files with 8,479 additions and 7,522 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

35 changes: 19 additions & 16 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useState } from 'react';
import React from 'react';
import { Provider } from 'react-redux';
import { MemoryRouter } from 'react-router';

Expand Down Expand Up @@ -29,22 +30,24 @@ export const decorators = [
const [activeLocale, setActiveLocale] = useState<string | null>(null);

return (
<ThemeProvider theme={theme}>
<LocalizationProvider
selectedLocale={selectedLocale}
setSelectedLocale={setSelectedLocale}
activeLocale={activeLocale}
setActiveLocale={setActiveLocale}
>
<StyledEngineProvider injectFirst>
<MemoryRouter initialEntries={['/']}>
<Provider store={store}>
<Story />
</Provider>
</MemoryRouter>
</StyledEngineProvider>
</LocalizationProvider>
</ThemeProvider>
<>
<ThemeProvider theme={theme}>
<LocalizationProvider
selectedLocale={selectedLocale}
setSelectedLocale={setSelectedLocale}
activeLocale={activeLocale}
setActiveLocale={setActiveLocale}
>
<StyledEngineProvider injectFirst>
<MemoryRouter initialEntries={['/']}>
<Provider store={store}>
<Story />
</Provider>
</MemoryRouter>
</StyledEngineProvider>
</LocalizationProvider>
</ThemeProvider>
</>
);
},
];
Loading

0 comments on commit 7932b34

Please sign in to comment.