Mapping all remaining views - just modals and components to go

This commit is contained in:
James Barnsley
2020-07-17 22:12:47 +12:00
parent d6f6db5f11
commit 9f186d281c
16 changed files with 1302 additions and 886 deletions

View File

@ -32,10 +32,17 @@ const i18n = (path, params = {}, transform) => {
return value;
};
const I18n = ({ path, transform, children, ...params }) => (
const I18n = ({
path,
transform,
children,
contentAfter,
...params
}) => (
<Fragment>
{!contentAfter && children}
{i18n(path, params, transform)}
{children}
{contentAfter && children}
</Fragment>
);