admin/features/events/detail/admin-event-detail/AdminEventReviewsTab.tsx
alisaza 82593dc18c refactor(events): update event management components and remove unused files
- Replaced `LIST_PUBLIC_CATEGORIES` with `LIST_ADMIN_CATEGORIES_FLAT` in `ArticleFormModal.tsx`.
- Removed the "Add Event" button from the dashboard page.
- Simplified the `EventsPage` by removing the button and adjusting the layout.
- Cleaned up the `AdminEventEditPage` by removing unnecessary props.
- Deleted unused layout and page files related to event creation.
- Updated `AdminAuthContent` to use `useAdminCitiesQuery` instead of `useDiscoveryCitiesQuery`.
- Refactored `EventGuestListAccessPanel` to remove the `accessMode` prop and adjust API calls accordingly.
- Removed several unused components and tests related to event creation, enhancing project maintainability.
2026-09-07 18:09:55 +03:30

27 lines
733 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use client'
import Button from '@/components/formElements/Button'
import EventReviewsPanel from '@/features/events/management/EventReviewsPanel'
interface AdminEventReviewsTabProps {
eventId: string
}
/** Read-only event reviews for admin detail — full body + host reply. */
const AdminEventReviewsTab = ({ eventId }: AdminEventReviewsTabProps) => (
<div className="flex flex-col gap-2">
<div className="flex justify-end">
<Button
size="sm"
to={`/reviews?filters[eventId]=${encodeURIComponent(eventId)}`}
variant="flat"
>
مشاهده در لیست کلی
</Button>
</div>
<EventReviewsPanel eventId={eventId} />
</div>
)
export default AdminEventReviewsTab