@@ -50,7 +44,7 @@ const PrivacyBlankslate = () => (
);
/** Layout to display a group. */
-const GroupLayout: React.FC
= ({ params, children }) => {
+const GroupLayout = () => {
const intl = useIntl();
const match = useRouteMatch();
const { account: me } = useOwnAccount();
@@ -92,7 +86,7 @@ const GroupLayout: React.FC = ({ params, children }) => {
if (!isMember && isPrivate) {
return ;
} else {
- return children;
+ return ;
}
};
diff --git a/packages/pl-fe/src/layouts/groups-layout.tsx b/packages/pl-fe/src/layouts/groups-layout.tsx
index 238e8d467..e56e54348 100644
--- a/packages/pl-fe/src/layouts/groups-layout.tsx
+++ b/packages/pl-fe/src/layouts/groups-layout.tsx
@@ -1,3 +1,4 @@
+import { Outlet } from '@tanstack/react-router';
import React from 'react';
import Column from 'pl-fe/components/ui/column';
@@ -5,17 +6,13 @@ import Layout from 'pl-fe/components/ui/layout';
import LinkFooter from 'pl-fe/features/ui/components/link-footer';
import { MyGroupsPanel, NewGroupPanel } from 'pl-fe/features/ui/util/async-components';
-interface IGroupsLayout {
- children: React.ReactNode;
-}
-
/** Layout to display groups. */
-const GroupsLayout: React.FC = ({ children }) => (
+const GroupsLayout = () => (
<>
- {children}
+
diff --git a/packages/pl-fe/src/layouts/home-layout.tsx b/packages/pl-fe/src/layouts/home-layout.tsx
index 70c05e0de..03cef972a 100644
--- a/packages/pl-fe/src/layouts/home-layout.tsx
+++ b/packages/pl-fe/src/layouts/home-layout.tsx
@@ -1,3 +1,4 @@
+import { Outlet } from '@tanstack/react-router';
import clsx from 'clsx';
import React, { useRef } from 'react';
import { useIntl } from 'react-intl';
@@ -25,11 +26,7 @@ import { useOwnAccount } from 'pl-fe/hooks/use-own-account';
import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config';
import { useSettings } from 'pl-fe/stores/settings';
-interface IHomeLayout {
- children: React.ReactNode;
-}
-
-const HomeLayout: React.FC = ({ children }) => {
+const HomeLayout = () => {
const intl = useIntl();
const dispatch = useAppDispatch();
@@ -84,7 +81,7 @@ const HomeLayout: React.FC = ({ children }) => {
)}
- {children}
+