diff --git a/packages/core/client/src/route-switch/antd/admin-layout/index.tsx b/packages/core/client/src/route-switch/antd/admin-layout/index.tsx index 05add5cefc..4640dc0a51 100644 --- a/packages/core/client/src/route-switch/antd/admin-layout/index.tsx +++ b/packages/core/client/src/route-switch/antd/admin-layout/index.tsx @@ -136,7 +136,15 @@ export const AdminDynamicPage = () => { return ; } - return {(uid) => }; + return ( + + {(uid) => ( + + + + )} + + ); }; const layoutContentClass = css` @@ -212,17 +220,13 @@ const pageContentStyle: React.CSSProperties = { }; export const LayoutContent = () => { - const currentPageUid = useCurrentPageUid(); - /* Use the "nb-subpages-slot-without-header-and-side" class name to locate the position of the subpages */ return ( - -
-
- -
+
+
+
- +
); }; diff --git a/packages/core/client/src/schema-component/antd/page/Page.tsx b/packages/core/client/src/schema-component/antd/page/Page.tsx index d402ab725e..81e392e193 100644 --- a/packages/core/client/src/schema-component/antd/page/Page.tsx +++ b/packages/core/client/src/schema-component/antd/page/Page.tsx @@ -25,7 +25,6 @@ import { CurrentTabUidContext, useCurrentSearchParams, useCurrentTabUid, - useLocationNoUpdate, useNavigateNoUpdate, useRouterBasename, } from '../../../application/CustomRouterContextProvider'; @@ -202,7 +201,6 @@ interface PageContentProps { const InternalPageContent = (props: PageContentProps) => { const { loading, disablePageHeader, enablePageTabs, activeKey } = props; const currentRoute = useCurrentRouteData(); - const location = useLocationNoUpdate(); const navigate = useNavigateNoUpdate(); const children = currentRoute?.children || [];