Files
crosscode-platform/apps/events/frontend/src/hooks/useHelpGuide.ts
T
joshuaandClaude Sonnet 5 f08959e306 Help guide opens on demand only; add At the door to admin quick actions
- The site-wide help guide no longer auto-opens on first visit to a page
  — it only opens when the help button is clicked. Removed the
  now-pointless "Don't show this again" checkbox and the per-page
  dismissal tracking it drove.
- Admin dashboard quick actions was missing "At the door" (walk-in
  registration, payments, ticket printing), which Supervisor already had.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-06 15:17:12 +02:00

15 lines
405 B
TypeScript

"use client";
import { useState } from "react";
/**
* Open/close state for a help guide — opens only when the user explicitly
* asks for it (e.g. clicking the help FAB), never automatically.
*/
export function useHelpGuide() {
const [open, setOpen] = useState(false);
const openGuide = () => setOpen(true);
const closeGuide = () => setOpen(false);
return { open, openGuide, closeGuide };
}