Add first-visit tip and how-to guide for guests
- guests in the feed see a "New here?" tip with a waving hand: swipe up to dismiss on mobile (top), close button on desktop (bottom right); shown once, remembered in localStorage - GuideModal: six short steps (feed and map, map pins, posting, chat with photos/video, phone reveal, marking as returned) plus safety tips; guests get a sign-in button - "How it works" item in the mobile menu and the desktop sidebar - ru/en texts, tests, README Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ import { useState, useCallback } from "react";
|
||||
* Управляет всеми модалками MainFeed через единое состояние,
|
||||
* чтобы гарантировать что открыта максимум одна модалка сразу.
|
||||
*
|
||||
* Типы: "create" | "edit" | "profile" | "auth" | "rules" | "postDetail"
|
||||
* Типы: "create" | "edit" | "profile" | "auth" | "rules" | "guide" | "postDetail"
|
||||
*/
|
||||
export function useModals() {
|
||||
const [modal, setModal] = useState(null); // { type, payload }
|
||||
|
||||
Reference in New Issue
Block a user