Polish admin hub pages: drop duplicate headers, align CTAs and empties.
Remove redundant titles under AdminHubChrome, style events/polls create flows with admin chrome + i18n, and standardize empty states / teams form classes. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
0582eed5ab
commit
3cb8b92cb3
14 files changed
+112
-105
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import Link from "next/link";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { getTranslations } from "next-intl/server";
|
||||
import { fetchAdminList } from "@/lib/admin-list";
|
||||
import { PERMS } from "@/lib/permissions";
|
||||
import { EventsTable } from "./events-table";
|
||||
@@ -11,6 +11,7 @@ export default async function EventsPage({
|
||||
params: Promise<{ locale: string }>;
|
||||
searchParams: Promise<Record<string, string>>;
|
||||
}) {
|
||||
const t = await getTranslations("pages.admin.events");
|
||||
const result = await fetchAdminList(
|
||||
{
|
||||
permission: PERMS.EVENTS_VIEW,
|
||||
@@ -45,9 +46,9 @@ export default async function EventsPage({
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div className="flex justify-end">
|
||||
<Button asChild>
|
||||
<Link href="/admin/events/create">New Event</Link>
|
||||
</Button>
|
||||
<Link href="/admin/events/create" className="btn btn-primary">
|
||||
{t("newEvent")}
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<EventsTable
|
||||
|
||||
Reference in new issue
Block a user