chore: clean up code by removing trailing whitespace and ensuring consistent formatting across various files = prettier
This commit is contained in:
@@ -65,7 +65,7 @@ export function RuleCreateDialog({
|
||||
if (!keyword) return null;
|
||||
const lowerKeyword = keyword.toLowerCase();
|
||||
return categories.find((c) =>
|
||||
c.keywords.some((k) => k.toLowerCase() === lowerKeyword)
|
||||
c.keywords.some((k) => k.toLowerCase() === lowerKeyword),
|
||||
);
|
||||
}, [keyword, categories]);
|
||||
|
||||
@@ -136,7 +136,8 @@ export function RuleCreateDialog({
|
||||
<div className="flex items-center gap-2 text-xs text-amber-600 dark:text-amber-400">
|
||||
<AlertCircle className="h-3 w-3" />
|
||||
<span>
|
||||
Ce mot-clé existe déjà dans "{existingCategory.name}"
|
||||
Ce mot-clé existe déjà dans "{existingCategory.name}
|
||||
"
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
@@ -202,8 +203,9 @@ export function RuleCreateDialog({
|
||||
<div className="flex items-center gap-2 text-sm text-success">
|
||||
<CheckCircle2 className="h-4 w-4" />
|
||||
<span>
|
||||
Le mot-clé "<strong>{keyword}</strong>" sera ajouté à la
|
||||
catégorie "<strong>{selectedCategory?.name}</strong>"
|
||||
Le mot-clé "<strong>{keyword}</strong>" sera ajouté
|
||||
à la catégorie "<strong>{selectedCategory?.name}</strong>
|
||||
"
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -225,4 +227,3 @@ export function RuleCreateDialog({
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user