refactor: standardize code formatting and improve readability across multiple components, including transaction handling and sidebar layout adjustments
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user