Revert "Add missing admin action files and navigation links"

This reverts commit 41be6835bf.
This commit is contained in:
Simo committed 2026-07-11 20:37:56 +02:00
1 parent 4a1e1115b3
commit 4d515bc400
338 files changed
+5949 -28144

No files matched your search

+4 -21
View File
@@ -51,27 +51,12 @@ export default async function AdminPhotos() {
<img
src={p.url}
alt={t("photoAlt", { id: String(p.id) })}
style={{
width: "100%",
height: 200,
objectFit: "cover",
display: "block",
background: "#f1f5f9",
}}
style={{ width: "100%", height: 200, objectFit: "cover", display: "block", background: "#f1f5f9" }}
/>
<div style={{ padding: "0.85rem 1.05rem 1.05rem" }}>
<div
style={{
display: "flex",
justifyContent: "space-between",
gap: "0.5rem",
alignItems: "baseline",
}}
>
<div style={{ display: "flex", justifyContent: "space-between", gap: "0.5rem", alignItems: "baseline" }}>
<strong>#{String(p.id)}</strong>
<span className="text-sm text-gray-500 dark:text-gray-400">
{t("colRoom")} {p.roomId}
</span>
<span className="text-sm text-gray-500 dark:text-gray-400">{t("colRoom")} {p.roomId}</span>
</div>
<p className="text-xs text-gray-500 dark:text-gray-400" style={{ margin: "0.3rem 0 0" }}>
{t("colUser")} {p.userId} ·{" "}
@@ -79,9 +64,7 @@ export default async function AdminPhotos() {
</p>
<form action={deletePhoto} style={{ marginTop: "0.75rem" }}>
<input type="hidden" name="id" value={String(p.id)} />
<button type="submit" className="btn btn-danger">
{t("delete")}
</button>
<button type="submit" className="btn btn-danger">{t("delete")}</button>
</form>
</div>
</div>