refactor: standardize quotation marks in pnpm-lock.yaml and improve code formatting across various components; enhance readability and maintain consistency in code style
This commit is contained in:
@@ -54,7 +54,11 @@ export function AccountMergeSelectDialog({
|
||||
}
|
||||
|
||||
const handleMerge = async () => {
|
||||
if (!sourceAccountId || !targetAccountId || sourceAccountId === targetAccountId) {
|
||||
if (
|
||||
!sourceAccountId ||
|
||||
!targetAccountId ||
|
||||
sourceAccountId === targetAccountId
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -105,13 +109,20 @@ export function AccountMergeSelectDialog({
|
||||
|
||||
<div className="space-y-3">
|
||||
<Label>Compte à conserver (destination)</Label>
|
||||
<RadioGroup value={targetAccountId} onValueChange={setTargetAccountId}>
|
||||
<RadioGroup
|
||||
value={targetAccountId}
|
||||
onValueChange={setTargetAccountId}
|
||||
>
|
||||
{selectedAccounts.map((account) => (
|
||||
<div
|
||||
key={account.id}
|
||||
className="flex items-start space-x-3 rounded-lg border p-3 hover:bg-accent"
|
||||
>
|
||||
<RadioGroupItem value={account.id} id={account.id} className="mt-1" />
|
||||
<RadioGroupItem
|
||||
value={account.id}
|
||||
id={account.id}
|
||||
className="mt-1"
|
||||
/>
|
||||
<Label
|
||||
htmlFor={account.id}
|
||||
className="flex-1 cursor-pointer space-y-1"
|
||||
@@ -120,7 +131,9 @@ export function AccountMergeSelectDialog({
|
||||
<div className="text-xs text-muted-foreground space-y-0.5">
|
||||
<div>Numéro: {account.accountNumber}</div>
|
||||
<div>Bank ID: {account.bankId}</div>
|
||||
<div>Solde: {formatCurrency(getAccountBalance(account))}</div>
|
||||
<div>
|
||||
Solde: {formatCurrency(getAccountBalance(account))}
|
||||
</div>
|
||||
</div>
|
||||
</Label>
|
||||
</div>
|
||||
@@ -133,9 +146,9 @@ export function AccountMergeSelectDialog({
|
||||
<AlertTriangle className="h-4 w-4" />
|
||||
<AlertDescription>
|
||||
<strong>Attention :</strong> Toutes les transactions du compte "
|
||||
{sourceAccount.name}" seront déplacées vers "{targetAccount.name}". Le
|
||||
compte "{sourceAccount.name}" sera supprimé après la fusion. Cette
|
||||
action est irréversible.
|
||||
{sourceAccount.name}" seront déplacées vers "
|
||||
{targetAccount.name}". Le compte "{sourceAccount.name}" sera
|
||||
supprimé après la fusion. Cette action est irréversible.
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
)}
|
||||
@@ -153,4 +166,3 @@ export function AccountMergeSelectDialog({
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user