From 53b883d4a1453157f35d06a53c45acc540836f55 Mon Sep 17 00:00:00 2001 From: hdsuperman Date: Thu, 22 Dec 2022 18:41:31 +0800 Subject: [PATCH] chore: code style --- src/routes/lazy.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/routes/lazy.tsx b/src/routes/lazy.tsx index c061a924..026c7a62 100644 --- a/src/routes/lazy.tsx +++ b/src/routes/lazy.tsx @@ -1,13 +1,16 @@ -import { PropsWithChildren, Suspense } from 'react'; +import { ReactNode, Suspense, FC } from "react"; import Loading from "../common/component/Loading"; -type Props = {} -const Lazy = ({ children }: PropsWithChildren) => { - return ( - }> - {children} - - ); +type Props = { + children?: ReactNode; +} + +const Lazy: FC = ({ children }) => { + return ( + }> + {children} + + ); }; -export default Lazy; \ No newline at end of file +export default Lazy;