From 739f3763dd8c707d0ba9650ea2edd0e093677bab Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Tue, 5 Sep 2023 11:40:42 +0000 Subject: [PATCH] feat: update share page to match latest changes --- .../src/app/(share)/share/[shareId]/page.tsx | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/apps/web/src/app/(share)/share/[shareId]/page.tsx b/apps/web/src/app/(share)/share/[shareId]/page.tsx index 56d3a941e..5e8389558 100644 --- a/apps/web/src/app/(share)/share/[shareId]/page.tsx +++ b/apps/web/src/app/(share)/share/[shareId]/page.tsx @@ -5,22 +5,12 @@ import { notFound } from 'next/navigation'; import { getSharingId } from '@documenso/lib/server-only/share/get-share-id'; -// import Redirect from './redirect'; +import Redirect from './redirect'; -type MetadataProps = { - params: { shareId: string }; +export const metadata: Metadata = { + title: 'Documenso - Share', }; -export async function generateMetadata({ params }: MetadataProps): Promise { - 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 = { params: { shareId?: string; @@ -42,7 +32,7 @@ export default async function SharePage({ params: { shareId } }: SharePageProps)

Share Page

Redirecting...

- {/* */} +
); }