212d6f7335
Root layout used title.template ("%s | Epicure") and 38 pages set
their own title, producing "Recipes | Epicure", "Messages — Epicure",
etc. Drop the template, set a flat "Epicure" default, and clear every
page's title override so they all inherit it.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
25 lines
769 B
TypeScript
25 lines
769 B
TypeScript
import type { Metadata } from "next";
|
|
import { db, tierDefinitions } from "@epicure/db";
|
|
import { TierLimitsForm } from "@/components/admin/tier-limits-form";
|
|
|
|
export const metadata: Metadata = {};
|
|
|
|
export default async function AdminTiersPage() {
|
|
const tiers = await db.select().from(tierDefinitions);
|
|
|
|
return (
|
|
<div className="space-y-8">
|
|
<div>
|
|
<h1 className="text-2xl font-bold tracking-tight">Tier Limits</h1>
|
|
<p className="text-muted-foreground text-sm mt-1">
|
|
Change monthly quotas per tier. Takes effect immediately for all users on that tier.
|
|
</p>
|
|
</div>
|
|
|
|
{tiers.map((tierDefinition) => (
|
|
<TierLimitsForm key={tierDefinition.tier} tierDefinition={tierDefinition} />
|
|
))}
|
|
</div>
|
|
);
|
|
}
|