From 33fe25e3324a61d8ca978a221892da8e8558830d Mon Sep 17 00:00:00 2001 From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Thu, 28 Mar 2024 21:15:11 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Format=20imports=20(#1140)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Admin/AddUser.tsx | 4 ++-- frontend/src/components/Admin/EditUser.tsx | 4 ++-- frontend/src/components/Items/AddItem.tsx | 4 ++-- frontend/src/components/Items/EditItem.tsx | 4 ++-- frontend/src/components/UserSettings/ChangePassword.tsx | 4 ++-- frontend/src/components/UserSettings/DeleteConfirmation.tsx | 2 +- frontend/src/components/UserSettings/UserInformation.tsx | 4 ++-- frontend/src/hooks/useAuth.ts | 4 ++-- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/Admin/AddUser.tsx b/frontend/src/components/Admin/AddUser.tsx index 52ce532..4ba845f 100644 --- a/frontend/src/components/Admin/AddUser.tsx +++ b/frontend/src/components/Admin/AddUser.tsx @@ -14,10 +14,10 @@ import { ModalHeader, ModalOverlay, } from "@chakra-ui/react" -import { useForm, type SubmitHandler } from "react-hook-form" +import { type SubmitHandler, useForm } from "react-hook-form" import { useMutation, useQueryClient } from "react-query" -import { UsersService, type UserCreate } from "../../client" +import { type UserCreate, UsersService } from "../../client" import type { ApiError } from "../../client/core/ApiError" import useCustomToast from "../../hooks/useCustomToast" import { emailPattern } from "../../utils" diff --git a/frontend/src/components/Admin/EditUser.tsx b/frontend/src/components/Admin/EditUser.tsx index 87b4a19..c3f207f 100644 --- a/frontend/src/components/Admin/EditUser.tsx +++ b/frontend/src/components/Admin/EditUser.tsx @@ -14,14 +14,14 @@ import { ModalHeader, ModalOverlay, } from "@chakra-ui/react" -import { useForm, type SubmitHandler } from "react-hook-form" +import { type SubmitHandler, useForm } from "react-hook-form" import { useMutation, useQueryClient } from "react-query" import { - UsersService, type ApiError, type UserOut, type UserUpdate, + UsersService, } from "../../client" import useCustomToast from "../../hooks/useCustomToast" import { emailPattern } from "../../utils" diff --git a/frontend/src/components/Items/AddItem.tsx b/frontend/src/components/Items/AddItem.tsx index bb0e0e7..be2b9b2 100644 --- a/frontend/src/components/Items/AddItem.tsx +++ b/frontend/src/components/Items/AddItem.tsx @@ -12,10 +12,10 @@ import { ModalHeader, ModalOverlay, } from "@chakra-ui/react" -import { useForm, type SubmitHandler } from "react-hook-form" +import { type SubmitHandler, useForm } from "react-hook-form" import { useMutation, useQueryClient } from "react-query" -import { ItemsService, type ApiError, type ItemCreate } from "../../client" +import { type ApiError, type ItemCreate, ItemsService } from "../../client" import useCustomToast from "../../hooks/useCustomToast" interface AddItemProps { diff --git a/frontend/src/components/Items/EditItem.tsx b/frontend/src/components/Items/EditItem.tsx index b471ad1..b3e3aeb 100644 --- a/frontend/src/components/Items/EditItem.tsx +++ b/frontend/src/components/Items/EditItem.tsx @@ -12,14 +12,14 @@ import { ModalHeader, ModalOverlay, } from "@chakra-ui/react" -import { useForm, type SubmitHandler } from "react-hook-form" +import { type SubmitHandler, useForm } from "react-hook-form" import { useMutation, useQueryClient } from "react-query" import { - ItemsService, type ApiError, type ItemOut, type ItemUpdate, + ItemsService, } from "../../client" import useCustomToast from "../../hooks/useCustomToast" diff --git a/frontend/src/components/UserSettings/ChangePassword.tsx b/frontend/src/components/UserSettings/ChangePassword.tsx index f634c2a..ffb3ec7 100644 --- a/frontend/src/components/UserSettings/ChangePassword.tsx +++ b/frontend/src/components/UserSettings/ChangePassword.tsx @@ -9,10 +9,10 @@ import { Input, useColorModeValue, } from "@chakra-ui/react" -import { useForm, type SubmitHandler } from "react-hook-form" +import { type SubmitHandler, useForm } from "react-hook-form" import { useMutation } from "react-query" -import { UsersService, type ApiError, type UpdatePassword } from "../../client" +import { type ApiError, type UpdatePassword, UsersService } from "../../client" import useCustomToast from "../../hooks/useCustomToast" interface UpdatePasswordForm extends UpdatePassword { diff --git a/frontend/src/components/UserSettings/DeleteConfirmation.tsx b/frontend/src/components/UserSettings/DeleteConfirmation.tsx index fca251b..db41935 100644 --- a/frontend/src/components/UserSettings/DeleteConfirmation.tsx +++ b/frontend/src/components/UserSettings/DeleteConfirmation.tsx @@ -11,7 +11,7 @@ import React from "react" import { useForm } from "react-hook-form" import { useMutation, useQueryClient } from "react-query" -import { UsersService, type ApiError, type UserOut } from "../../client" +import { type ApiError, type UserOut, UsersService } from "../../client" import useAuth from "../../hooks/useAuth" import useCustomToast from "../../hooks/useCustomToast" diff --git a/frontend/src/components/UserSettings/UserInformation.tsx b/frontend/src/components/UserSettings/UserInformation.tsx index 2cf9165..fd13ad5 100644 --- a/frontend/src/components/UserSettings/UserInformation.tsx +++ b/frontend/src/components/UserSettings/UserInformation.tsx @@ -12,14 +12,14 @@ import { useColorModeValue, } from "@chakra-ui/react" import { useState } from "react" -import { useForm, type SubmitHandler } from "react-hook-form" +import { type SubmitHandler, useForm } from "react-hook-form" import { useMutation, useQueryClient } from "react-query" import { - UsersService, type ApiError, type UserOut, type UserUpdateMe, + UsersService, } from "../../client" import useAuth from "../../hooks/useAuth" import useCustomToast from "../../hooks/useCustomToast" diff --git a/frontend/src/hooks/useAuth.ts b/frontend/src/hooks/useAuth.ts index e358c1e..309a0ab 100644 --- a/frontend/src/hooks/useAuth.ts +++ b/frontend/src/hooks/useAuth.ts @@ -2,10 +2,10 @@ import { useNavigate } from "@tanstack/react-router" import { useQuery } from "react-query" import { - LoginService, - UsersService, type Body_login_login_access_token as AccessToken, + LoginService, type UserOut, + UsersService, } from "../client" const isLoggedIn = () => {