Reapply "Add missing admin action files and navigation links"
This reverts commit 4d515bc400.
This commit is contained in:
1 parent
96ed768f14
commit
5b4228261a
338 files changed
+28143
-5948
No files matched your search
@@ -36,11 +36,7 @@ function withHotel(text: string | null | undefined, hotelName: string): string {
|
||||
return (text ?? "").split(":hotel").join(hotelName);
|
||||
}
|
||||
|
||||
export default async function HelpCategoryPage({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ category: string }>;
|
||||
}) {
|
||||
export default async function HelpCategoryPage({ params }: { params: Promise<{ category: string }> }) {
|
||||
const t = await getTranslations("pages.helpCategory");
|
||||
const { category } = await params;
|
||||
|
||||
@@ -118,10 +114,7 @@ export default async function HelpCategoryPage({
|
||||
) : null}
|
||||
|
||||
{/* content is author-supplied HTML — sanitised server-side. */}
|
||||
<div
|
||||
style={{ lineHeight: 1.7 }}
|
||||
dangerouslySetInnerHTML={{ __html: sanitize(content) }}
|
||||
/>
|
||||
<div style={{ lineHeight: 1.7 }} dangerouslySetInnerHTML={{ __html: sanitize(content) }} />
|
||||
|
||||
{hasButton ? (
|
||||
<div style={{ clear: "both", marginTop: "1rem" }}>
|
||||
@@ -140,11 +133,7 @@ export default async function HelpCategoryPage({
|
||||
</ContentCard>
|
||||
|
||||
{siblings.length > 0 ? (
|
||||
<ContentCard
|
||||
icon="🧭"
|
||||
title={t("moreTitle")}
|
||||
subtitle={t("moreSubtitle")}
|
||||
>
|
||||
<ContentCard icon="🧭" title={t("moreTitle")} subtitle={t("moreSubtitle")}>
|
||||
<div className="card-grid sm-2 lg-3">
|
||||
{siblings.map((s) => (
|
||||
<Link
|
||||
|
||||
@@ -35,11 +35,7 @@ export default async function HelpTicketsPage() {
|
||||
|
||||
return (
|
||||
<main style={{ display: "grid", gap: "1.5rem" }}>
|
||||
<ContentCard
|
||||
icon="🎫"
|
||||
title={t("title")}
|
||||
subtitle={t("subtitle")}
|
||||
>
|
||||
<ContentCard icon="🎫" title={t("title")} subtitle={t("subtitle")}>
|
||||
<div className="stat-grid">
|
||||
<StatBlock icon="🎫" value={tickets.length} label={t("statTotal")} />
|
||||
<StatBlock icon="📬" value={openCount} label={t("statOpen")} />
|
||||
|
||||
Reference in new issue
Block a user