Render FormattedMessage translations into React.Fragment by default (#38398)

This commit is contained in:
diondiondion
2026-03-25 16:01:40 +01:00
committed by GitHub
parent 15dbf8040e
commit e3dfb7ddd6
5 changed files with 4 additions and 16 deletions

View File

@@ -137,11 +137,7 @@ const preview: Preview = {
}, [currentLocale, currentLocaleData]);
return (
<IntlProvider
locale={currentLocale}
messages={currentLocaleData}
textComponent='span'
>
<IntlProvider locale={currentLocale} messages={currentLocaleData}>
<Story />
</IntlProvider>
);