- 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>
15 lines
405 B
TypeScript
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 };
|
|
}
|