feat: account
This commit is contained in:
@@ -46,7 +46,7 @@ export default function EditPageClient({ page, pageType, initialBlocks = [] }: P
|
||||
return (
|
||||
<div className="flex flex-col p-16 gap-12">
|
||||
<div className="flex flex-row items-center justify-between">
|
||||
<h1 className="underline underline-offset-8 decoration-2">Edit page</h1>
|
||||
<h1 className="">Edit page</h1>
|
||||
<div className="flex flex-row gap-3">
|
||||
<Button
|
||||
disabled={isPending}
|
||||
|
||||
@@ -170,7 +170,7 @@ export default async function Page({ params }: { params: Promise<{ type: string;
|
||||
<div className="flex flex-col p-16 gap-12">
|
||||
<div className={cn("flex flex-col gap-4 justify-center", isNews && "items-center")}>
|
||||
<div className="flex flex-row items-center gap-6">
|
||||
<h1 className="underline underline-offset-8 decoration-2">{page?.title}</h1>
|
||||
<h1 className="">{page?.title}</h1>
|
||||
{user?.isAdmin && (
|
||||
<div className="flex flex-row gap-2 items-center">
|
||||
<Link href={`/${page.type.toLowerCase()}/${page.slug}/edit`}>
|
||||
@@ -194,7 +194,7 @@ export default async function Page({ params }: { params: Promise<{ type: string;
|
||||
<Alert className="w-max">
|
||||
<InfoIcon />
|
||||
<AlertTitle>This page is archived</AlertTitle>
|
||||
<AlertDescription>It can be seen only by admins. Make any edits to make it visible again.</AlertDescription>
|
||||
<AlertDescription>It can be seen only by administrators. Make any edits to make it visible again.</AlertDescription>
|
||||
</Alert>
|
||||
)}
|
||||
{blocks.map((block) => (
|
||||
|
||||
Reference in New Issue
Block a user