♻️ Migrate frontend client generation from openapi-typescript-codegen to @hey-api/openapi-ts (#1151)

This commit is contained in:
Alejandra
2024-04-03 16:40:33 -05:00
committed by GitHub
parent 7d7b31823f
commit 529a475c8d
63 changed files with 1576 additions and 1755 deletions

View File

@@ -14,7 +14,7 @@ import {
import { createFileRoute } from "@tanstack/react-router"
import { useQuery } from "react-query"
import { type ApiError, ItemsService } from "../../client"
import { ItemsService } from "../../client"
import ActionsMenu from "../../components/Common/ActionsMenu"
import Navbar from "../../components/Common/Navbar"
import useCustomToast from "../../hooks/useCustomToast"
@@ -33,7 +33,7 @@ function Items() {
} = useQuery("items", () => ItemsService.readItems({}))
if (isError) {
const errDetail = (error as ApiError).body?.detail
const errDetail = (error as any).body?.detail
showToast("Something went wrong.", `${errDetail}`, "error")
}