Skip to content

The Open Source DocuSign Alternative.

feat: update share page to match latest changes

Ephraim Atta-Duncan8df5304b8e25
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<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 = {
params: {
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">
<h1 className="my-2 text-4xl font-semibold">Share Page</h1>
<p className="my-2 text-xl">Redirecting...</p>
- {/* <Redirect /> */}
+ <Redirect />
</div>
);
}