prod
This commit is contained in:
@@ -6,6 +6,7 @@ import { DeleteDialog } from "./delete-dialog";
|
||||
import { LogoutButton } from "./logout-button";
|
||||
import { UpdateButton } from "./update-button";
|
||||
import { AccountMenu } from "./account-menu";
|
||||
import { Metadata } from "next";
|
||||
|
||||
function ProfileField({ label, value }: { label: string; value: string }) {
|
||||
return (
|
||||
@@ -16,6 +17,14 @@ function ProfileField({ label, value }: { label: string; value: string }) {
|
||||
);
|
||||
}
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Profile",
|
||||
robots: {
|
||||
index: false,
|
||||
follow: false,
|
||||
},
|
||||
};
|
||||
|
||||
export default async function Account() {
|
||||
const user = await getCurrentUser();
|
||||
if (!user) redirect("/");
|
||||
|
||||
Reference in New Issue
Block a user