style: fmt

This commit is contained in:
tigattack
2025-09-25 08:59:28 +01:00
parent 469107c149
commit 35eb9303b1
6 changed files with 162 additions and 142 deletions

View File

@@ -36,7 +36,9 @@ const SortableCardItem = ({ card, onToggle }) => {
transform,
transition,
isDragging,
} = useSortable({ id: card.cardId });
} = useSortable({
id: card.cardId,
});
const style = {
transform: CSS.Transform.toString(transform),

View File

@@ -496,8 +496,9 @@ const DeleteHostGroupModal = ({ group, onClose, onConfirm, isLoading }) => {
<div className="mt-3 p-3 bg-warning-50 border border-warning-200 rounded-md">
<p className="text-sm text-warning-800">
<strong>Warning:</strong> This group contains{" "}
{group._count.hosts} host{group._count.hosts !== 1 ? "s" : ""}.
You must move or remove these hosts before deleting the group.
{group._count.hosts} host
{group._count.hosts !== 1 ? "s" : ""}. You must move or remove
these hosts before deleting the group.
</p>
</div>
)}

View File

@@ -292,7 +292,9 @@ const Hosts = () => {
newSearchParams.delete("action");
navigate(
`/hosts${newSearchParams.toString() ? `?${newSearchParams.toString()}` : ""}`,
{ replace: true },
{
replace: true,
},
);
}
@@ -306,7 +308,9 @@ const Hosts = () => {
newSearchParams.delete("selected");
navigate(
`/hosts${newSearchParams.toString() ? `?${newSearchParams.toString()}` : ""}`,
{ replace: true },
{
replace: true,
},
);
}
}, [searchParams, navigate]);

View File

@@ -583,8 +583,9 @@ const DeleteHostGroupModal = ({ group, onClose, onConfirm, isLoading }) => {
<div className="mt-3 p-3 bg-warning-50 border border-warning-200 rounded-md">
<p className="text-sm text-warning-800">
<strong>Warning:</strong> This group contains{" "}
{group._count.hosts} host{group._count.hosts !== 1 ? "s" : ""}.
You must move or remove these hosts before deleting the group.
{group._count.hosts} host
{group._count.hosts !== 1 ? "s" : ""}. You must move or remove
these hosts before deleting the group.
</p>
</div>
)}