move ApiResponse

This commit is contained in:
Alex Holliday committed 2025-12-16 19:09:08 +00:00
1 parent 03b6d5976c
commit 0b626f991f
43 files changed
+48 -46

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ import { useNavigate } from "react-router";
import { useTheme } from "@mui/material/styles";
import { useParams } from "react-router";
import { useGet } from "@/hooks/UseApi";
import type { ApiResponse } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import type { ITeamMember } from "@/types/team-member";
const TeamDetailsPage = () => {
+1 -1
View File
@@ -5,7 +5,7 @@ import { Dialog } from "@/components/inputs";
import { useState } from "react";
import { useGet, usePatch, useGetOnDemand } from "@/hooks/UseApi";
import { useParams } from "react-router";
import type { ApiResponse } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import { useNavigate } from "react-router";
import { useDelete } from "@/hooks/UseApi";
import { useTranslation } from "react-i18next";
+1 -1
View File
@@ -2,7 +2,7 @@ import { TeamMemberForm } from "./TeamMemberForm";
import { useParams } from "react-router";
import { useGet, usePost } from "@/hooks/UseApi";
import type { ApiResponse } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import { useNavigate } from "react-router";
import { mutate } from "swr";
import { useGetOnDemand } from "@/hooks/UseApi";
+1 -1
View File
@@ -9,7 +9,7 @@ import { useNavigate } from "react-router";
import { useTranslation } from "react-i18next";
import type { ActionMenuItem } from "@/components/actions-menu";
import type { Header } from "@/components/design-elements/Table";
import type { ApiResponse } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import { useGet, useDelete } from "@/hooks/UseApi";
import type { ITeam } from "@/types/team";
import { useState } from "react";
+1 -1
View File
@@ -4,7 +4,7 @@ import { useNavigate, useParams } from "react-router";
import { z } from "zod";
import { teamSchema } from "@/validation/zod";
import { useGet, usePatch, useGetOnDemand } from "@/hooks/UseApi";
import type { ApiResponse } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import type { IUser } from "@/types/user";
import { useAppDispatch } from "@/hooks/AppHooks";
import { setUser } from "@/features/authSlice";
+1 -1
View File
@@ -4,7 +4,7 @@ import { useNavigate } from "react-router";
import { z } from "zod";
import { teamSchema } from "@/validation/zod";
import { useGet, usePost, useGetOnDemand } from "@/hooks/UseApi";
import type { ApiResponse } from "@/hooks/UseApi";
import type { ApiResponse } from "@/types/api";
import { mutate } from "swr";
import type { IUser } from "@/types/user";
import { useAppDispatch } from "@/hooks/AppHooks";