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 { PollsTable } from "./polls-table";
|
||||
@@ -11,6 +11,7 @@ export default async function PollsPage({
|
||||
params: Promise<{ locale: string }>;
|
||||
searchParams: Promise<Record<string, string>>;
|
||||
}) {
|
||||
const t = await getTranslations("pages.admin.polls");
|
||||
const result = await fetchAdminList(
|
||||
{
|
||||
permission: PERMS.POLLS_VIEW,
|
||||
@@ -44,9 +45,9 @@ export default async function PollsPage({
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div className="flex justify-end">
|
||||
<Button asChild>
|
||||
<Link href="/admin/polls/create">New Poll</Link>
|
||||
</Button>
|
||||
<Link href="/admin/polls/create" className="btn btn-primary">
|
||||
{t("newPoll")}
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<PollsTable
|
||||
|
||||
Reference in new issue
Block a user