|
5 | 5 | * found at http://www.apache.org/licenses/LICENSE-2.0. |
6 | 6 | */ |
7 | 7 |
|
8 | | -import React, { StrictMode } from 'react'; |
| 8 | +import React from 'react'; |
9 | 9 | import styled, { createGlobalStyle } from 'styled-components'; |
10 | 10 | import { create } from '@storybook/theming/create'; |
11 | 11 | import { ThemeProvider, DEFAULT_THEME, getColorV8 } from '../packages/theming/src'; |
@@ -77,10 +77,7 @@ const withThemeProvider = (story, context) => { |
77 | 77 | ); |
78 | 78 | }; |
79 | 79 |
|
80 | | -const withStrictMode = (story, context) => |
81 | | - context.globals.strictMode === 'enabled' ? <StrictMode>{story()}</StrictMode> : <>{story()}</>; |
82 | | - |
83 | | -export const decorators = [withThemeProvider, withStrictMode]; |
| 80 | +export const decorators = [withThemeProvider]; |
84 | 81 |
|
85 | 82 | export const globalTypes = { |
86 | 83 | locale: { |
@@ -118,19 +115,5 @@ export const globalTypes = { |
118 | 115 | { value: 'fuschia', title: 'Custom primary hue' } |
119 | 116 | ] |
120 | 117 | } |
121 | | - }, |
122 | | - ...(process.env.NODE_ENV === 'development' && { |
123 | | - strictMode: { |
124 | | - name: 'strictMode', |
125 | | - description: 'Strict mode', |
126 | | - defaultValue: 'disabled', |
127 | | - toolbar: { |
128 | | - icon: 'alert', |
129 | | - items: [ |
130 | | - { value: 'disabled', title: 'Strict mode disabled' }, |
131 | | - { value: 'enabled', title: 'Strict mode enabled' } |
132 | | - ] |
133 | | - } |
134 | | - } |
135 | | - }) |
| 118 | + } |
136 | 119 | }; |
0 commit comments