move ApiResponse
This commit is contained in:
1 parent
03b6d5976c
commit
0b626f991f
43 files changed
+48
-46
No files matched your search
@@ -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 = () => {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user