diff --git a/packages/pl-fe/src/init/pl-fe-head.tsx b/packages/pl-fe/src/init/pl-fe-head.tsx index 905c015107..ac32912aa2 100644 --- a/packages/pl-fe/src/init/pl-fe-head.tsx +++ b/packages/pl-fe/src/init/pl-fe-head.tsx @@ -12,12 +12,8 @@ import { generateThemeCss } from 'pl-fe/utils/theme'; const Helmet = React.lazy(() => import('pl-fe/components/helmet')); -interface IPlFeHead { - children: React.ReactNode; -} - /** Injects metadata into site head with Helmet. */ -const PlFeHead: React.FC = ({ children }) => { +const PlFeHead = () => { const { locale, direction } = useLocale(); const { demo, reduceMotion, underlineLinks, demetricator, systemFont } = useSettings(); const plFeConfig = usePlFeConfig(); @@ -43,17 +39,13 @@ const PlFeHead: React.FC = ({ children }) => { }, [dsn]); return ( - <> - - - - {themeCss && } - {['dark', 'black'].includes(theme) && } - - - - {children} - + + + + {themeCss && } + {['dark', 'black'].includes(theme) && } + + ); }; diff --git a/packages/pl-fe/src/init/pl-fe.tsx b/packages/pl-fe/src/init/pl-fe.tsx index 649c7f1dba..6e3f9acd40 100644 --- a/packages/pl-fe/src/init/pl-fe.tsx +++ b/packages/pl-fe/src/init/pl-fe.tsx @@ -30,11 +30,10 @@ const PlFe: React.FC = () => ( - - - - - + + + +