mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-28 23:38:04 +00:00
Enabled recommended-requiring-type-checking as result type fixes provided (#632)
* Enabled recommended-requiring-type-checking * from .cjs to .js * check * check * check * check * A lot of types aligned and refactored * More strict types * Improvement * Improvements * Improvements * Fixed routs * Fixed import types
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { BsTrash3, BsArrowRepeat } from "react-icons/bs";
|
||||
import { Chart, Repository } from "../../data/types";
|
||||
import type { Chart, Repository } from "../../data/types";
|
||||
import ChartViewer from "./ChartViewer";
|
||||
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import apiService from "../../API/apiService";
|
||||
@@ -52,9 +52,9 @@ function RepositoryViewer({ repository }: RepositoryViewerProps) {
|
||||
method: "DELETE",
|
||||
}
|
||||
);
|
||||
navigate("/repository", { replace: true });
|
||||
await navigate("/repository", { replace: true });
|
||||
setSelectedRepo("");
|
||||
queryClient.invalidateQueries({
|
||||
await queryClient.invalidateQueries({
|
||||
queryKey: ["helm", "repositories"],
|
||||
});
|
||||
} catch (error) {
|
||||
@@ -104,7 +104,7 @@ function RepositoryViewer({ repository }: RepositoryViewerProps) {
|
||||
</button>
|
||||
<button
|
||||
onClick={() => {
|
||||
removeRepository();
|
||||
void removeRepository();
|
||||
}}
|
||||
>
|
||||
<span className="flex h-8 items-center gap-2 rounded-sm border border-gray-300 bg-white px-5 py-1 text-sm font-semibold">
|
||||
|
||||
Reference in New Issue
Block a user