Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/components/Admin/AddUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Admin/EditUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Items/AddItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Items/EditItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/UserSettings/ChangePassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/UserSettings/UserInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/hooks/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down