diff --git a/src/app/(pages)/page.tsx b/src/app/(pages)/page.tsx index bfbae50..3d1e198 100644 --- a/src/app/(pages)/page.tsx +++ b/src/app/(pages)/page.tsx @@ -1,6 +1,6 @@ "use client"; -import { ReactElement, useState } from "react"; +import { ReactElement, useEffect, useState } from "react"; import { ActionMenu } from "@/app/components/action-menu"; import { Button } from "@/app/components/ui/button"; import { useToast } from "@/app/components/ui/use-toast"; @@ -52,6 +52,10 @@ export default function Home(): ReactElement { window.location.href = `/${data.id}`; } + useEffect(() => { + document.getElementById("paste-input")?.focus(); + }, []); + return (