diff --git a/src/components/Layout/AdminLayoutPortal.tsx b/src/components/Layout/AdminLayoutPortal.tsx index 68d33cf..3125e97 100644 --- a/src/components/Layout/AdminLayoutPortal.tsx +++ b/src/components/Layout/AdminLayoutPortal.tsx @@ -1,13 +1,14 @@ -import { Button, Layout } from 'antd' +import { memo, ReactNode } from 'react' import { Link } from 'react-router-dom' +import { Button, Layout, LayoutProps } from 'antd' + import PageHeader from '../PageHeader' -type LayoutPortalProps = { - title?: string - [props: string]: any +export type AdminLayoutPortalProps = LayoutProps & { + title?: ReactNode } -export const AdminLayoutPortal: React.FC = ({title, ...props}) => ( +export const AdminLayoutPortal = memo(({ title, ...props }) => (