chore: clean up code by removing trailing whitespace and ensuring consistent formatting across various files = prettier

This commit is contained in:
Julien Froidefond
2025-12-01 08:37:30 +01:00
parent 757b1b84ab
commit e715779de7
98 changed files with 5453 additions and 3126 deletions

View File

@@ -80,4 +80,3 @@ export function CategoryCard({
</div>
);
}

View File

@@ -142,7 +142,7 @@ export function CategoryEditDialog({
className={cn(
"w-7 h-7 rounded-full transition-transform",
formData.color === color &&
"ring-2 ring-offset-2 ring-primary scale-110"
"ring-2 ring-offset-2 ring-primary scale-110",
)}
style={{ backgroundColor: color }}
/>
@@ -201,4 +201,3 @@ export function CategoryEditDialog({
</Dialog>
);
}

View File

@@ -43,4 +43,3 @@ export function CategorySearchBar({
</div>
);
}

View File

@@ -15,4 +15,3 @@ export const categoryColors = [
"#0891b2",
"#dc2626",
];

View File

@@ -3,4 +3,3 @@ export { CategoryEditDialog } from "./category-edit-dialog";
export { ParentCategoryRow } from "./parent-category-row";
export { CategorySearchBar } from "./category-search-bar";
export { categoryColors } from "./constants";

View File

@@ -73,7 +73,9 @@ export function ParentCategoryRow({
size={isMobile ? 10 : 14}
/>
</div>
<span className="font-medium text-xs md:text-sm truncate">{parent.name}</span>
<span className="font-medium text-xs md:text-sm truncate">
{parent.name}
</span>
{!isMobile && (
<span className="text-xs md:text-sm text-muted-foreground shrink-0">
{children.length} {stats.count} opération
@@ -102,7 +104,11 @@ export function ParentCategoryRow({
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="icon" className="h-6 w-6 md:h-7 md:w-7">
<Button
variant="ghost"
size="icon"
className="h-6 w-6 md:h-7 md:w-7"
>
<MoreVertical className="w-3 h-3 md:w-4 md:h-4" />
</Button>
</DropdownMenuTrigger>
@@ -147,4 +153,3 @@ export function ParentCategoryRow({
</div>
);
}