mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Use updated I18nProvider in storybook (#8232)
We accidentally broke this in: #8213
This commit is contained in:
parent
b7b827b01c
commit
2e9d41e013
@ -1,7 +1,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { addDecorator, addParameters } from '@storybook/react'
|
import { addDecorator, addParameters } from '@storybook/react'
|
||||||
import { withKnobs } from '@storybook/addon-knobs/react'
|
import { withKnobs } from '@storybook/addon-knobs/react'
|
||||||
import I18nProvider from '../ui/app/contexts/i18n'
|
import { I18nProvider, LegacyI18nProvider } from '../ui/app/contexts/i18n'
|
||||||
import { Provider } from 'react-redux'
|
import { Provider } from 'react-redux'
|
||||||
import configureStore from '../ui/app/store/store'
|
import configureStore from '../ui/app/store/store'
|
||||||
import '../ui/app/css/index.scss'
|
import '../ui/app/css/index.scss'
|
||||||
@ -33,9 +33,11 @@ const store = configureStore({
|
|||||||
const metamaskDecorator = story => (
|
const metamaskDecorator = story => (
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
<I18nProvider>
|
<I18nProvider>
|
||||||
|
<LegacyI18nProvider>
|
||||||
<div style={styles}>
|
<div style={styles}>
|
||||||
{ story() }
|
{ story() }
|
||||||
</div>
|
</div>
|
||||||
|
</LegacyI18nProvider>
|
||||||
</I18nProvider>
|
</I18nProvider>
|
||||||
</Provider>
|
</Provider>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user