feat: update share page to match latest changes

This commit is contained in:
Ephraim Atta-Duncan
2023-09-05 11:40:42 +00:00
committed by Mythie
parent 794e575ae9
commit 8df5304b8e

View File

@ -5,22 +5,12 @@ import { notFound } from 'next/navigation';
import { getSharingId } from '@documenso/lib/server-only/share/get-share-id'; import { getSharingId } from '@documenso/lib/server-only/share/get-share-id';
// import Redirect from './redirect'; import Redirect from './redirect';
type MetadataProps = { export const metadata: Metadata = {
params: { shareId: string }; title: 'Documenso - Share',
}; };
export async function generateMetadata({ params }: MetadataProps): Promise<Metadata> {
const id = params.shareId;
const share = await getSharingId({ shareId: id });
const signature = share?.recipent.name || share?.recipent.email;
return {
title: 'Documenso - Share',
};
}
export type SharePageProps = { export type SharePageProps = {
params: { params: {
shareId?: string; shareId?: string;
@ -42,7 +32,7 @@ export default async function SharePage({ params: { shareId } }: SharePageProps)
<div className="flex h-screen flex-col items-center justify-center"> <div className="flex h-screen flex-col items-center justify-center">
<h1 className="my-2 text-4xl font-semibold">Share Page</h1> <h1 className="my-2 text-4xl font-semibold">Share Page</h1>
<p className="my-2 text-xl">Redirecting...</p> <p className="my-2 text-xl">Redirecting...</p>
{/* <Redirect /> */} <Redirect />
</div> </div>
); );
} }