build: format the code with prettier

This commit is contained in:
Tristan Yang
2023-05-19 16:31:28 +08:00
parent 7afc132bbb
commit 5bd0183651
259 changed files with 7627 additions and 5607 deletions
+14 -6
View File
@@ -1,8 +1,9 @@
import { FC, useState, useEffect, memo } from "react";
import clsx from "clsx";
import { FC, memo, useEffect, useState } from "react";
import { Ring } from "@uiball/loaders";
import Button from "./styled/Button";
import clsx from "clsx";
import useLogout from "@/hooks/useLogout";
import Button from "./styled/Button";
interface Props {
reload?: boolean;
@@ -22,7 +23,6 @@ const Loading: FC<Props> = ({ reload = false, fullscreen = false }) => {
inter = window.setTimeout(() => {
setReloadVisible(true);
}, 30 * 1000);
}
return () => {
clearTimeout(inter);
@@ -30,9 +30,17 @@ const Loading: FC<Props> = ({ reload = false, fullscreen = false }) => {
}, [reload]);
return (
<div className={clsx("w-full h-full flex-center flex-col gap-4 dark:bg-gray-800/80", fullscreen ? "w-screen h-screen" : "")}>
<div
className={clsx(
"w-full h-full flex-center flex-col gap-4 dark:bg-gray-800/80",
fullscreen ? "w-screen h-screen" : ""
)}
>
<Ring size={40} lineWeight={5} speed={2} color="black" />
<Button className={clsx(`danger`, reloadVisible ? "visible" : "invisible")} onClick={handleReload}>
<Button
className={clsx(`danger`, reloadVisible ? "visible" : "invisible")}
onClick={handleReload}
>
Reload
</Button>
</div>