mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +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 { addDecorator, addParameters } from '@storybook/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 configureStore from '../ui/app/store/store'
|
||||
import '../ui/app/css/index.scss'
|
||||
@ -33,9 +33,11 @@ const store = configureStore({
|
||||
const metamaskDecorator = story => (
|
||||
<Provider store={store}>
|
||||
<I18nProvider>
|
||||
<div style={styles}>
|
||||
{ story() }
|
||||
</div>
|
||||
<LegacyI18nProvider>
|
||||
<div style={styles}>
|
||||
{ story() }
|
||||
</div>
|
||||
</LegacyI18nProvider>
|
||||
</I18nProvider>
|
||||
</Provider>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user