style: satisfy cumulative biome checks
This commit is contained in:
1 parent
cb77b2d3b9
commit
b9c47aa89a
10 files changed
+34
-37
No files matched your search
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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",
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user