Upgrading to Babel 7; Fixing failing tests

This commit is contained in:
James Barnsley
2020-08-04 21:04:07 +12:00
parent df7a02a863
commit dbb41b4f57
15 changed files with 27928 additions and 28276 deletions

View File

@ -39,13 +39,18 @@ const I18n = ({
children,
contentAfter,
...params
}) => (
<Fragment>
{!contentAfter && children}
{i18n(path, params, transform)}
{contentAfter && children}
</Fragment>
);
}) => {
if (!children) {
return i18n(path, params, transform);
}
return (
<Fragment>
{!contentAfter && children}
{i18n(path, params, transform)}
{contentAfter && children}
</Fragment>
);
};
export default {
I18n,