Skip to content

Commit

Permalink
fix(storybook): add LanguageModeProvider as decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
schettn authored Sep 13, 2021
1 parent a7b59a3 commit c41fb52
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/jaen-shared-ui/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {LanguageModeProvider} from '../src/language-mode'

export const parameters = {
actions: {argTypesRegex: '^on[A-Z].*'},
layout: 'fullscreen',
Expand All @@ -8,3 +10,11 @@ export const parameters = {
}
}
}

export const decorators = [
Story => (
<LanguageModeProvider options={{initialLanguageMode: 'en'}}>
<Story />
</LanguageModeProvider>
)
]

0 comments on commit c41fb52

Please sign in to comment.