diff --git a/root/edit/components/ListHeader.js b/root/edit/components/ListHeader.js index 0ad60a4a2f5..2d274b6ce4e 100644 --- a/root/edit/components/ListHeader.js +++ b/root/edit/components/ListHeader.js @@ -22,13 +22,13 @@ type Props = { +username?: string, }; -const QuickLinksSection = ({ +const QuickLinks = ({ entity, isSearch = false, page, refineUrlArgs, username, -}: Props): React$Element<'td'> => { +}: Props): React$Element => { const $c = React.useContext(CatalystContext); const isSecureConnection = $c.req.secure; const protocol = isSecureConnection ? 'https://' : 'http://'; @@ -173,16 +173,14 @@ const QuickLinksSection = ({ , ); } - return ( - - {quickLinks.reduce((accum: Array, link, index) => { - accum.push(link); - if (index < (quickLinks.length - 1)) { - accum.push(' | '); - } - return accum; - }, [])} - + return React.createElement(React.Fragment, null, ...quickLinks.reduce( + (accum: Array, link, index) => { + accum.push(link); + if (index < (quickLinks.length - 1)) { + accum.push(' | '); + } + return accum; + }, []) ); }; @@ -198,13 +196,15 @@ const ListHeader = ({ {l('Quick links:')} - + + +