mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-31 15:21:34 -04:00
fix: use span for localized messages
This commit is contained in:
parent
51c493a450
commit
5e35844e28
2 changed files with 7 additions and 1 deletions
|
@ -39,6 +39,7 @@ const render = (jsx, element, reducers, initialState, enhancer) => {
|
|||
<IntlProvider
|
||||
locale={intlLocale}
|
||||
messages={messages}
|
||||
textComponent="span"
|
||||
>
|
||||
{jsx}
|
||||
</IntlProvider>
|
||||
|
|
|
@ -39,7 +39,12 @@ const mountWithIntl = (node, {context, childContextTypes} = {}) => {
|
|||
|
||||
// react-test-renderer component for use with snapshot testing
|
||||
const componentWithIntl = (children, props = {locale: 'en'}) => renderer.create(
|
||||
<IntlProvider {...props}>{children}</IntlProvider>
|
||||
<IntlProvider
|
||||
textComponent="span"
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</IntlProvider>
|
||||
);
|
||||
|
||||
export {
|
||||
|
|
Loading…
Add table
Reference in a new issue