added carousel image on post on mainFeed

This commit is contained in:
SlimusMinus
2026-10-09 01:21:14 +03:00
parent 55c71e664d
commit b924483231
12 changed files with 29 additions and 205 deletions

View File

@@ -5,7 +5,7 @@ import { useChats } from "./useChats";
/**
* useContactSeller — общая логика открытия/создания чата с автором объявления.
* Используется в PostOnFeed (карточка в ленте) и ImageViewer (просмотр фото).
* Используется в PostOnFeed (карточка в ленте).
*
* @param {object} post — объявление: { id, userId, title, images, emoji }
* @returns {{

View File

@@ -4,7 +4,7 @@ import { useState, useCallback } from "react";
* Управляет всеми модалками MainFeed через единое состояние,
* чтобы гарантировать что открыта максимум одна модалка сразу.
*
* Типы: "create" | "edit" | "profile" | "auth" | "rules" | "viewer"
* Типы: "create" | "edit" | "profile" | "auth" | "rules" | "postDetail"
*/
export function useModals() {
const [modal, setModal] = useState(null); // { type, payload }