mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 04:51:51 +00:00
feat(ui): migrate from HeroUI to shadcn/ui (#11532)
This commit is contained in:
@@ -76,7 +76,7 @@ export const IntegrationCardHeader = ({
|
||||
"text-xs font-normal",
|
||||
connectionStatus.connected
|
||||
? "bg-bg-pass-secondary text-text-success-primary border-transparent"
|
||||
: "bg-bg-danger-secondary text-text-danger border-transparent",
|
||||
: "bg-bg-fail-secondary text-text-error-primary border-transparent",
|
||||
)}
|
||||
>
|
||||
{connectionStatus.label ||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
"use client";
|
||||
|
||||
import { Card, CardBody, CardHeader } from "@heroui/card";
|
||||
import { Skeleton } from "@heroui/skeleton";
|
||||
import { ReactNode } from "react";
|
||||
|
||||
import { Card, CardContent, CardHeader, Skeleton } from "@/components/shadcn";
|
||||
|
||||
interface IntegrationSkeletonProps {
|
||||
variant?: "main" | "manager";
|
||||
count?: number;
|
||||
@@ -21,8 +21,8 @@ export const IntegrationSkeleton = ({
|
||||
}: IntegrationSkeletonProps) => {
|
||||
if (variant === "main") {
|
||||
return (
|
||||
<Card className="dark:bg-prowler-blue-400">
|
||||
<CardHeader className="gap-2">
|
||||
<Card className="dark:bg-bg-neutral-secondary gap-0">
|
||||
<CardHeader className="mb-0 flex items-center gap-2 p-3">
|
||||
<div className="flex w-full items-center justify-between">
|
||||
<div className="flex items-center gap-3">
|
||||
{icon}
|
||||
@@ -39,12 +39,12 @@ export const IntegrationSkeleton = ({
|
||||
</div>
|
||||
</div>
|
||||
</CardHeader>
|
||||
<CardBody>
|
||||
<CardContent className="p-3">
|
||||
<div className="flex flex-col gap-4">
|
||||
<Skeleton className="h-4 w-full rounded" />
|
||||
<Skeleton className="h-4 w-3/4 rounded" />
|
||||
</div>
|
||||
</CardBody>
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
@@ -53,8 +53,8 @@ export const IntegrationSkeleton = ({
|
||||
return (
|
||||
<div className="grid gap-4">
|
||||
{Array.from({ length: count }).map((_, index) => (
|
||||
<Card key={index} className="dark:bg-prowler-blue-400">
|
||||
<CardHeader className="pb-2">
|
||||
<Card key={index} className="dark:bg-bg-neutral-secondary gap-0">
|
||||
<CardHeader className="mb-0 flex items-center p-3 pb-2">
|
||||
<div className="flex w-full flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
|
||||
<div className="flex items-center gap-3">
|
||||
{icon}
|
||||
@@ -70,7 +70,7 @@ export const IntegrationSkeleton = ({
|
||||
</div>
|
||||
</div>
|
||||
</CardHeader>
|
||||
<CardBody className="pt-0">
|
||||
<CardContent className="p-3 pt-0">
|
||||
<div className="flex flex-col gap-3">
|
||||
{/* Region chips skeleton */}
|
||||
<div className="flex flex-wrap gap-1">
|
||||
@@ -89,7 +89,7 @@ export const IntegrationSkeleton = ({
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</CardBody>
|
||||
</CardContent>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@ import { ExternalLinkIcon, LucideIcon } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
|
||||
import { Button } from "@/components/shadcn";
|
||||
import { CustomLink } from "@/components/ui/custom/custom-link";
|
||||
import { CustomLink } from "@/components/shadcn/custom/custom-link";
|
||||
|
||||
import { Card, CardContent, CardHeader } from "../../shadcn";
|
||||
|
||||
@@ -34,7 +34,7 @@ export const LinkCard = ({
|
||||
<CardHeader>
|
||||
<div className="flex w-full flex-col items-start gap-2 sm:flex-row sm:items-center sm:justify-between">
|
||||
<div className="flex items-center gap-3">
|
||||
<div className="dark:bg-prowler-blue-800 flex h-10 w-10 items-center justify-center rounded-lg bg-gray-100">
|
||||
<div className="bg-bg-neutral-tertiary flex h-10 w-10 items-center justify-center rounded-lg">
|
||||
<Icon size={24} className="text-gray-700 dark:text-gray-200" />
|
||||
</div>
|
||||
<div className="flex flex-col gap-1">
|
||||
|
||||
Reference in New Issue
Block a user