mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 14:28:04 +00:00
Bumped vite, eslint, typescript, prettier and related plugins versions to latest (#623)
* Bumped vite, eslint, typescript, prettier and related plugins * Fixed unused arg * Fixed prettier warnings
This commit is contained in:
@@ -11,10 +11,9 @@ const HealthStatus = ({ statusData }: Props) => {
|
||||
return item.status?.conditions
|
||||
?.filter((cond) => cond.type === HD_RESOURCE_CONDITION_TYPE)
|
||||
.map((cond) => {
|
||||
const stableKey =
|
||||
item.metadata?.uid
|
||||
? `${item.metadata.uid}-${item.metadata.namespace ?? "default"}`
|
||||
: `${item.kind}-${item.metadata?.namespace ?? "default"}-${item.metadata?.name}`;
|
||||
const stableKey = item.metadata?.uid
|
||||
? `${item.metadata.uid}-${item.metadata.namespace ?? "default"}`
|
||||
: `${item.kind}-${item.metadata?.namespace ?? "default"}-${item.metadata?.name}`;
|
||||
|
||||
return (
|
||||
<Tooltip
|
||||
@@ -26,20 +25,20 @@ const HealthStatus = ({ statusData }: Props) => {
|
||||
cond.status === "Healthy"
|
||||
? "bg-success"
|
||||
: cond.status === "Progressing"
|
||||
? "bg-warning"
|
||||
: "bg-danger"
|
||||
? "bg-warning"
|
||||
: "bg-danger"
|
||||
} w-2.5 h-2.5 rounded-sm`}
|
||||
></span>
|
||||
</Tooltip>
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
if (statuses.length === 0) {
|
||||
return <div>No health statuses available</div>;
|
||||
}
|
||||
|
||||
|
||||
return <div className="flex flex-wrap gap-1">{statuses}</div>;
|
||||
};
|
||||
|
||||
export default HealthStatus;
|
||||
export default HealthStatus;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import InstalledPackageCard from "./InstalledPackageCard";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import InstalledPackagesHeader from "./InstalledPackagesHeader";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import InstalledPackagesList from "./InstalledPackagesList";
|
||||
|
||||
const meta = {
|
||||
|
||||
Reference in New Issue
Block a user