mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-31 15:54:24 +00:00
feat(ui): migrate from HeroUI to shadcn/ui (#11532)
This commit is contained in:
1 parent
c665005790
commit
52875b5c7c
519 files changed
+4798
-6997
No files matched your search
@@ -7,8 +7,8 @@ import {
|
||||
ActionDropdown,
|
||||
ActionDropdownItem,
|
||||
} from "@/components/shadcn/dropdown";
|
||||
import { EntityInfo } from "@/components/ui/entities";
|
||||
import { DataTableColumnHeader } from "@/components/ui/table";
|
||||
import { EntityInfo } from "@/components/shadcn/entities";
|
||||
import { DataTableColumnHeader } from "@/components/shadcn/table";
|
||||
import { getGroupLabel } from "@/lib/categories";
|
||||
import { getRegionFlag } from "@/lib/region-flags";
|
||||
import { ProviderType, ResourceProps } from "@/types";
|
||||
|
||||
@@ -19,18 +19,21 @@ import {
|
||||
TooltipContent,
|
||||
TooltipTrigger,
|
||||
} from "@/components/shadcn";
|
||||
import {
|
||||
BreadcrumbNavigation,
|
||||
CustomBreadcrumbItem,
|
||||
} from "@/components/shadcn";
|
||||
import { DateWithTime } from "@/components/shadcn/entities/date-with-time";
|
||||
import { EntityInfo } from "@/components/shadcn/entities/entity-info";
|
||||
import {
|
||||
InfoField,
|
||||
InfoTooltip,
|
||||
} from "@/components/shadcn/info-field/info-field";
|
||||
import { LoadingState } from "@/components/shadcn/spinner/loading-state";
|
||||
import { DataTable } from "@/components/shadcn/table";
|
||||
import { EventsTimeline } from "@/components/shared/events-timeline/events-timeline";
|
||||
import { ExternalResourceLink } from "@/components/shared/external-resource-link";
|
||||
import { ResourceMetadataPanel } from "@/components/shared/resource-metadata-panel";
|
||||
import { BreadcrumbNavigation, CustomBreadcrumbItem } from "@/components/ui";
|
||||
import { DateWithTime } from "@/components/ui/entities/date-with-time";
|
||||
import { EntityInfo } from "@/components/ui/entities/entity-info";
|
||||
import { DataTable } from "@/components/ui/table";
|
||||
import { getGroupLabel } from "@/lib/categories";
|
||||
import { shouldRefreshAfterTriageUpdate } from "@/lib/finding-triage";
|
||||
import { getRegionFlag } from "@/lib/region-flags";
|
||||
|
||||
@@ -32,11 +32,11 @@ vi.mock("@/components/shadcn", () => ({
|
||||
),
|
||||
}));
|
||||
|
||||
vi.mock("@/components/ui/entities", () => ({
|
||||
vi.mock("@/components/shadcn/entities", () => ({
|
||||
DateWithTime: ({ dateTime }: { dateTime: string }) => <time>{dateTime}</time>,
|
||||
}));
|
||||
|
||||
vi.mock("@/components/ui/table", () => ({
|
||||
vi.mock("@/components/shadcn/table", () => ({
|
||||
DataTableColumnHeader: ({ title }: { title: string }) => <span>{title}</span>,
|
||||
SeverityBadge: ({ severity }: { severity: string }) => (
|
||||
<span>{severity}</span>
|
||||
|
||||
@@ -12,13 +12,13 @@ import {
|
||||
NotificationIndicator,
|
||||
} from "@/components/findings/table/notification-indicator";
|
||||
import { Checkbox } from "@/components/shadcn";
|
||||
import { DateWithTime } from "@/components/ui/entities";
|
||||
import { DateWithTime } from "@/components/shadcn/entities";
|
||||
import {
|
||||
DataTableColumnHeader,
|
||||
Severity,
|
||||
SeverityBadge,
|
||||
StatusFindingBadge,
|
||||
} from "@/components/ui/table";
|
||||
} from "@/components/shadcn/table";
|
||||
import type {
|
||||
FindingTriageLoadedNote,
|
||||
FindingTriageSummary,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import { useState } from "react";
|
||||
|
||||
import { ResourceDetailsSheet } from "@/components/resources/resource-details-sheet";
|
||||
import { DataTable } from "@/components/ui/table";
|
||||
import { DataTable } from "@/components/shadcn/table";
|
||||
import { MetaDataProps, ResourceProps } from "@/types";
|
||||
|
||||
import { getColumnResources } from "./column-resources";
|
||||
|
||||
Reference in new issue
Block a user