refactor: standardize code formatting and improve readability across multiple components, including transaction handling and sidebar layout adjustments

This commit is contained in:
Julien Froidefond
2025-12-08 09:28:09 +01:00
parent 11c0df1293
commit cb8628ce39
10 changed files with 80 additions and 86 deletions

View File

@@ -182,9 +182,7 @@ export function AccountFilterCombobox({
{isFolderPartiallySelected(folder.id) && (
<div className="h-3 w-3 rounded-sm bg-primary/50 mr-1" />
)}
{isFolderSelected(folder.id) && (
<Check className="h-4 w-4" />
)}
{isFolderSelected(folder.id) && <Check className="h-4 w-4" />}
</div>
</CommandItem>
@@ -306,9 +304,7 @@ export function AccountFilterCombobox({
)
</span>
)}
{isAll && (
<Check className="ml-auto h-4 w-4" />
)}
{isAll && <Check className="ml-auto h-4 w-4" />}
</CommandItem>
</CommandGroup>

View File

@@ -193,7 +193,11 @@ export function CategoryFilterCombobox({
align="start"
onOpenAutoFocus={(e) => e.preventDefault()}
>
<Command value={isAll ? "all" : isUncategorized ? "uncategorized" : value.join(",")}>
<Command
value={
isAll ? "all" : isUncategorized ? "uncategorized" : value.join(",")
}
>
<CommandInput placeholder="Rechercher..." />
<CommandList className="max-h-[300px]">
<CommandEmpty>Aucune catégorie trouvée.</CommandEmpty>
@@ -212,9 +216,7 @@ export function CategoryFilterCombobox({
({filteredTransactions.length})
</span>
)}
{isAll && (
<Check className="ml-auto h-4 w-4 shrink-0" />
)}
{isAll && <Check className="ml-auto h-4 w-4 shrink-0" />}
</CommandItem>
<CommandItem
value="uncategorized"