- 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.
27 lines
733 B
TypeScript
27 lines
733 B
TypeScript
'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
|