Skip to content

Commit

Permalink
chore: return strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 committed Nov 24, 2023
1 parent 8715fbd commit 42d2431
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ configure({

const withContextProvider: Decorator = (Story, context) => {
return (
// Strict mode disabled due to this react-beautiful-dnd issue
// https://github.com/atlassian/react-beautiful-dnd/issues/2350
<ThemeProvider theme={context.globals.theme}>
<MobileProvider>
<Story {...context} />
</MobileProvider>
</ThemeProvider>
<React.StrictMode>
<ThemeProvider theme={context.globals.theme}>
<MobileProvider>
<Story {...context} />
</MobileProvider>
</ThemeProvider>
</React.StrictMode>
);
};

Expand Down
3 changes: 3 additions & 0 deletions src/components/List/__stories__/List.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import type {ListProps} from '..';

import {ListShowcase} from './ListShowcase';

// Strict mode ruins sortable list due to this react-beautiful-dnd issue
// https://github.com/atlassian/react-beautiful-dnd/issues/2350

type ComponentType = React.JSXElementConstructor<ListProps<string>>;

export default {
Expand Down

0 comments on commit 42d2431

Please sign in to comment.