diff --git a/app/zine/create/page.tsx b/app/zine/create/page.tsx index 116f0fe..4be5727 100644 --- a/app/zine/create/page.tsx +++ b/app/zine/create/page.tsx @@ -18,6 +18,8 @@ import { } from "lucide-react"; import TextSelectionCanvas from "@/components/zine/TextSelectionCanvas"; +const DRAFT_STORAGE_KEY = "zineDraft"; + // Helper to get correct path based on subdomain function useZinePath() { const [isSubdomain, setIsSubdomain] = useState(false); @@ -284,6 +286,13 @@ export default function CreatePage() { const data = await response.json(); + // Clear the draft since zine is now complete + try { + localStorage.removeItem(DRAFT_STORAGE_KEY); + } catch { + // Ignore localStorage errors + } + setState((s) => s ? { ...s, printLayoutUrl: data.printLayoutUrl, currentStep: "download" } : s ); @@ -858,6 +867,11 @@ export default function CreatePage() { + + + + + )} + {/* Main Form */}
{/* Topic Input */}