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
+10 -8
View File
@@ -1,18 +1,19 @@
import { useEffect, useState, FC, useRef } from "react";
import { FC, useEffect, useRef, useState } from "react";
import toast from "react-hot-toast";
import { useTranslation } from "react-i18next";
import { useDispatch } from "react-redux";
import StyledInput from "@/components/styled/Input";
import StyledButton from "@/components/styled/Button";
import { useWizard } from "react-use-wizard";
import { useLoginMutation } from "@/app/services/auth";
import {
useCreateAdminMutation,
useGetServerQuery,
useUpdateServerMutation
} from "@/app/services/server";
import { useLoginMutation } from "@/app/services/auth";
import { updateInitialized } from "@/app/slices/auth.data";
import { useAppSelector } from "@/app/store";
import { useTranslation } from "react-i18next";
import { useWizard } from "react-use-wizard";
import StyledButton from "@/components/styled/Button";
import StyledInput from "@/components/styled/Input";
type Props = {
serverName: string;
@@ -23,8 +24,9 @@ const AdminAccount: FC<Props> = ({ serverName }) => {
const formRef = useRef<HTMLFormElement | undefined>();
const loggedIn = useAppSelector((store) => !!store.authData.token);
const dispatch = useDispatch();
const [createAdmin, { isLoading: isSigningUp, isError: signUpError, isSuccess: signUpOk }] = useCreateAdminMutation();
const [login, { isLoading: isLoggingIn, isError: loginError, }] = useLoginMutation();
const [createAdmin, { isLoading: isSigningUp, isError: signUpError, isSuccess: signUpOk }] =
useCreateAdminMutation();
const [login, { isLoading: isLoggingIn, isError: loginError }] = useLoginMutation();
const { data: serverData } = useGetServerQuery();
const [updateServer, { isLoading: isUpdatingServer, isSuccess: isUpdatedServer }] =
useUpdateServerMutation();