Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: add skip button to onboarding

Marc Seitzffd0c2fe8f8a
diff --git a/pages/welcome.tsx b/pages/welcome.tsx
index 4993c898..7783bb3b 100644
--- a/pages/welcome.tsx
+++ b/pages/welcome.tsx
@@ -5,6 +5,7 @@ import Upload from "@/components/welcome/upload";
import { ArrowLeft as ArrowLeftIcon } from "lucide-react";
import { AnimatePresence } from "framer-motion";
import NotionForm from "@/components/welcome/notion-form";
+import { Button } from "@/components/ui/button";
export default function Welcome() {
const router = useRouter();
@@ -25,12 +26,22 @@ export default function Welcome() {
</div>
<AnimatePresence mode="wait">
{router.query.type ? (
- <button
- className="group absolute left-2 sm:left-10 top-10 z-40 rounded-full p-2 transition-all hover:bg-gray-400"
- onClick={() => router.back()}
- >
- <ArrowLeftIcon className="h-8 w-8 text-gray-500 group-hover:text-gray-800 group-active:scale-90" />
- </button>
+ <>
+ <button
+ className="group absolute left-2 sm:left-10 top-10 z-40 rounded-full p-2 transition-all hover:bg-gray-400"
+ onClick={() => router.back()}
+ >
+ <ArrowLeftIcon className="h-8 w-8 text-gray-500 group-hover:text-gray-800 group-active:scale-90" />
+ </button>
+
+ <Button
+ variant={"link"}
+ onClick={() => router.push("/documents")}
+ className="absolute right-2 sm:right-10 top-10 z-40 p-2 text-muted-foreground"
+ >
+ Skip to dashboard
+ </Button>
+ </>
) : (
<Intro key="intro" />
)}