The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
chore: remove ssr
Adithya Krishnaa03ce728f357
diff --git a/apps/marketing/src/app/(marketing)/open/typefully.tsx b/apps/marketing/src/app/(marketing)/open/typefully.tsxindex 809b0f6c3..98f4186d0 100644--- a/apps/marketing/src/app/(marketing)/open/typefully.tsx+++ b/apps/marketing/src/app/(marketing)/open/typefully.tsx@@ -1,7 +1,6 @@'use client';import type { HTMLAttributes } from 'react';-import { useEffect, useState } from 'react';import Image from 'next/image';import Link from 'next/link';@@ -13,34 +12,27 @@ import { Button } from '@documenso/ui/primitives/button';export type TypefullyProps = HTMLAttributes<HTMLDivElement>;export const Typefully = ({ className, ...props }: TypefullyProps) => {- const [isSSR, setIsSSR] = useState(true);-- useEffect(() => {- setIsSSR(false);- }, []);return (<div className={cn('flex flex-col', className)} {...props}><h3 className="px-4 text-lg font-semibold">Twitter Stats</h3><div className="border-border mt-2.5 flex flex-1 items-center justify-center rounded-2xl border py-8 shadow-sm hover:shadow">- {!isSSR && (- <div className="flex flex-col gap-y-4 text-center">- <Image className="opacity-75" src={Twitter} alt="Twitter Logo" width={120} />+ <div className="flex flex-col gap-y-4 text-center">+ <Image className="opacity-75" src={Twitter} alt="Twitter Logo" width={120} />+ <Link href="https://typefully.com/documenso/stats" target="_blank">+ <h1>Documenso on X</h1>+ </Link>+ <Button className="rounded-full" size="sm" asChild><Link href="https://typefully.com/documenso/stats" target="_blank">- <h1>Documenso on X</h1>+ View all stats+ </Link>+ </Button>+ <Button className="rounded-full bg-white" size="sm" asChild>+ <Link href="https://twitter.com/documenso" target="_blank">+ Follow us on X</Link>- <Button className="rounded-full" size="sm" asChild>- <Link href="https://typefully.com/documenso/stats" target="_blank">- View all stats- </Link>- </Button>- <Button className="rounded-full bg-white" size="sm" asChild>- <Link href="https://twitter.com/documenso" target="_blank">- Follow us on X- </Link>- </Button>- </div>- )}+ </Button>+ </div></div></div>);