style: satisfy cumulative biome checks

This commit is contained in:
Simo committed 2026-08-30 19:38:36 +02:00
1 parent cb77b2d3b9
commit b9c47aa89a
10 files changed
+34 -37

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ export async function updateAd(formData: FormData): Promise<void> {
id: Number(raw),
error: result.error.messageKey,
});
revalidatePath("/admin/ads/" + raw);
revalidatePath(`/admin/ads/${raw}`);
return;
}
redirect("/admin/ads");
+1 -1
View File
@@ -54,7 +54,7 @@ export async function updateArticle(formData: FormData): Promise<void> {
{ action: "update", id, ...articleInput(formData) },
);
if (!result.ok) redirect("/admin/articles?error=Update failed");
revalidatePath("/admin/articles/" + id);
revalidatePath(`/admin/articles/${id}`);
redirect("/admin/articles");
}
+1 -1
View File
@@ -60,7 +60,7 @@ export async function updateHelpQuestion(formData: FormData): Promise<void> {
{ action: "update", id, ...input },
);
if (!result.ok) {
revalidatePath("/admin/help-questions/" + id);
revalidatePath(`/admin/help-questions/${id}`);
return;
}
redirect("/admin/help-questions");
+2 -2
View File
@@ -49,7 +49,7 @@ export async function applyPreset(formData: FormData): Promise<void> {
if (result.ok) revalidatePath("/", "layout");
redirect(
result.ok
? "/admin/theme?preset=" + encodeURIComponent(name)
? `/admin/theme?preset=${encodeURIComponent(name)}`
: "/admin/theme",
);
}
@@ -80,7 +80,7 @@ export async function applyCustomTheme(formData: FormData): Promise<void> {
: "";
redirect(
result.ok
? "/admin/theme?theme=" + encodeURIComponent(name)
? `/admin/theme?theme=${encodeURIComponent(name)}`
: "/admin/theme",
);
}