Skip to content

Commit

Permalink
fix: Spinner snapshot with translated msg ws wrong (#1325)
Browse files Browse the repository at this point in the history
fix: Spinner snapshot with translated msg ws wrong
  • Loading branch information
ptbrowne authored Dec 20, 2019
2 parents 14f3fa6 + eebd55c commit 61e1932
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions react/Spinner/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@ import Spinner from 'cozy-ui/transpiled/react/Spinner';
import I18n from 'cozy-ui/transpiled/react/I18n';
<div>
<I18n lang='en' dictRequire={() => {
en: {
loading: {
helloWorld: 'Hello World !'
}
<I18n lang='en' dictRequire={() => ({
loading: {
helloWorld: 'Hello world !'
}
}}>
})}>
<Spinner size='xxlarge' loadingType='helloWorld' />
</I18n>
</div>
Expand Down
2 changes: 1 addition & 1 deletion react/__snapshots__/examples.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5845,7 +5845,7 @@ exports[`Spinner should render examples: Spinner 5`] = `
<div class=\\"styles__c-spinner___1snK7\\"><svg class=\\"styles__icon___23x3R styles__icon--spin___ybfC1\\" style=\\"fill: var(--primaryColor);\\" width=\\"80\\" height=\\"80\\">
<use xlink:href=\\"#spinner\\"></use>
</svg>
<p>loading.helloWorld</p>
<p>Hello world !</p>
</div>
</div>
</div>"
Expand Down

0 comments on commit 61e1932

Please sign in to comment.