fix: update delay default to 200

pull/26/head
fantasticit 2022-04-13 09:05:57 +08:00
parent f4e583b2e7
commit 3e0d8a4781
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ interface IProps {
normalContent: React.ReactElement;
}
export const LoadingWrap: React.FC<IProps> = ({ loading, delay = 300, loadingContent, normalContent }) => {
export const LoadingWrap: React.FC<IProps> = ({ loading, delay = 200, loadingContent, normalContent }) => {
const timer = useRef<ReturnType<typeof setTimeout>>(null);
const [showLoading, toggleShowLoading] = useToggle(false);