1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Use updated I18nProvider in storybook (#8232)

We accidentally broke this in: #8213
This commit is contained in:
ricky 2020-03-24 19:31:47 -04:00 committed by GitHub
parent b7b827b01c
commit 2e9d41e013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
<LegacyI18nProvider>
<div style={styles}>
{ story() }
</div>
</LegacyI18nProvider>
</I18nProvider>
</Provider>
)