chore: code style
This commit is contained in:
+6
-3
@@ -1,8 +1,11 @@
|
|||||||
import { PropsWithChildren, Suspense } from 'react';
|
import { ReactNode, Suspense, FC } from "react";
|
||||||
import Loading from "../common/component/Loading";
|
import Loading from "../common/component/Loading";
|
||||||
type Props = {}
|
|
||||||
|
|
||||||
const Lazy = ({ children }: PropsWithChildren<Props>) => {
|
type Props = {
|
||||||
|
children?: ReactNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
const Lazy: FC<Props> = ({ children }) => {
|
||||||
return (
|
return (
|
||||||
<Suspense fallback={<Loading />}>
|
<Suspense fallback={<Loading />}>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
Reference in New Issue
Block a user