mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-13 06:54:16 +00:00
style(ui): fix prettier formatting in tree-item and stepper
This commit is contained in:
2 files changed
+14
-18
No files matched your search
@@ -9,10 +9,7 @@ import {
|
||||
TooltipTrigger,
|
||||
} from "@/components/shadcn/tooltip";
|
||||
import { cn } from "@/lib/utils";
|
||||
import {
|
||||
APPLY_STATUS,
|
||||
DiscoveredAccount,
|
||||
} from "@/types/organizations";
|
||||
import { APPLY_STATUS, DiscoveredAccount } from "@/types/organizations";
|
||||
import { TreeRenderItemParams } from "@/types/tree";
|
||||
|
||||
const TREE_ITEM_MODE = {
|
||||
@@ -51,7 +48,9 @@ export function OrgAccountTreeItem({
|
||||
return (
|
||||
<div className="flex flex-1 items-center gap-3">
|
||||
<div className={`${idColumnClass} flex items-center gap-2`}>
|
||||
{ItemIcon && <ItemIcon className="text-muted-foreground size-4 shrink-0" />}
|
||||
{ItemIcon && (
|
||||
<ItemIcon className="text-muted-foreground size-4 shrink-0" />
|
||||
)}
|
||||
<span className="text-sm">{item.id}</span>
|
||||
</div>
|
||||
<div className="min-w-0 flex-1">
|
||||
@@ -85,7 +84,9 @@ export function OrgAccountTreeItem({
|
||||
<div className="flex flex-1 items-center gap-3">
|
||||
{/* Account ID */}
|
||||
<div className={cn(idColumnClass, "flex items-center gap-2")}>
|
||||
{ItemIcon && <ItemIcon className="text-muted-foreground size-4 shrink-0" />}
|
||||
{ItemIcon && (
|
||||
<ItemIcon className="text-muted-foreground size-4 shrink-0" />
|
||||
)}
|
||||
<span className={cn("text-sm", isBlocked && "text-muted-foreground")}>
|
||||
{account.id}
|
||||
</span>
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import {
|
||||
CircleCheckBig,
|
||||
FolderGit2,
|
||||
KeyRound,
|
||||
Rocket,
|
||||
} from "lucide-react";
|
||||
import { CircleCheckBig, FolderGit2, KeyRound, Rocket } from "lucide-react";
|
||||
import { ReactElement } from "react";
|
||||
|
||||
import { ProwlerShort } from "@/components/icons/prowler/ProwlerIcons";
|
||||
@@ -69,7 +64,11 @@ export function WizardStepper({
|
||||
return (
|
||||
<div key={step.label} className="flex items-start gap-3">
|
||||
<div className="flex flex-col items-center">
|
||||
<StepCircle isComplete={isComplete} isActive={isActive} icon={step.icon} />
|
||||
<StepCircle
|
||||
isComplete={isComplete}
|
||||
isActive={isActive}
|
||||
icon={step.icon}
|
||||
/>
|
||||
{index < STEPS.length - 1 && (
|
||||
<StepConnector isComplete={isComplete} />
|
||||
)}
|
||||
@@ -103,11 +102,7 @@ interface StepCircleProps {
|
||||
icon: IconComponent;
|
||||
}
|
||||
|
||||
function StepCircle({
|
||||
isComplete,
|
||||
isActive,
|
||||
icon: Icon,
|
||||
}: StepCircleProps) {
|
||||
function StepCircle({ isComplete, isActive, icon: Icon }: StepCircleProps) {
|
||||
if (isComplete) {
|
||||
return (
|
||||
<div className="bg-button-primary-press flex size-[44px] shrink-0 items-center justify-center rounded-full">
|
||||
|
||||
Reference in new issue
Block a user