This commit is contained in:
alisaza 2026-09-07 18:57:57 +03:30
parent 8b6791b3a2
commit 9f0a3bfc86
4 changed files with 4 additions and 19 deletions

View File

@ -30,10 +30,7 @@ const EventGuestListAccessPanel = ({ eventId }: EventGuestListAccessPanelProps)
try { try {
setIsLoading(true) setIsLoading(true)
setError(null) setError(null)
const [nextLinks, nextInvitedGuests] = await Promise.all([ const [nextLinks, nextInvitedGuests] = await Promise.all([fetchEventGuestListLinks(eventId), fetchEventInvitedGuests(eventId)])
fetchEventGuestListLinks(eventId),
fetchEventInvitedGuests(eventId),
])
if (!cancelled) { if (!cancelled) {
setLinks(nextLinks) setLinks(nextLinks)

View File

@ -23,12 +23,7 @@ import UnsavedChangesIndicator from '@/components/forms/UnsavedChangesIndicator'
import { useEventScheduleConstraints } from '@/components/events/schedule/eventScheduleConstraints' import { useEventScheduleConstraints } from '@/components/events/schedule/eventScheduleConstraints'
import { isEventSlugLocked, isFieldLocked, resolveEventEditPolicy } from '@/features/events/eventEditPolicy' import { isEventSlugLocked, isFieldLocked, resolveEventEditPolicy } from '@/features/events/eventEditPolicy'
import { syncEventFaqs, syncEventMedia } from '@/features/events/edit/syncEventExtras' import { syncEventFaqs, syncEventMedia } from '@/features/events/edit/syncEventExtras'
import { import { fetchEventCategories, fetchEventForEdit, updateEventAsAdmin, type EventCategory } from '@/services/events'
fetchEventCategories,
fetchEventForEdit,
updateEventAsAdmin,
type EventCategory,
} from '@/services/events'
import { fetchEventFaqs, fetchEventMedia, type EventFaq, type EventMedia } from '@/services/eventDetail' import { fetchEventFaqs, fetchEventMedia, type EventFaq, type EventMedia } from '@/services/eventDetail'
import { fetchAllCities, type City } from '@/services/geography' import { fetchAllCities, type City } from '@/services/geography'
import { extractServerErrorDetail } from '@/services/errorHandler' import { extractServerErrorDetail } from '@/services/errorHandler'

View File

@ -7,11 +7,7 @@ import AdminState from '@/components/feedback/AdminState'
import ReviewCard from '@/components/reviews/ReviewCard' import ReviewCard from '@/components/reviews/ReviewCard'
import StatusChip from '@/components/ui/StatusChip' import StatusChip from '@/components/ui/StatusChip'
import { getReviewStatus } from '@/constants/status' import { getReviewStatus } from '@/constants/status'
import { import { EVENT_REVIEWS_PAGE_SIZE, LIST_ADMIN_EVENT_REVIEWS_PAGE, type AdminEventReview } from '@/services/reviews'
EVENT_REVIEWS_PAGE_SIZE,
LIST_ADMIN_EVENT_REVIEWS_PAGE,
type AdminEventReview,
} from '@/services/reviews'
import { texts } from '@/texts' import { texts } from '@/texts'
interface EventReviewsPanelProps { interface EventReviewsPanelProps {

View File

@ -11,10 +11,7 @@ import { clearStoredPushSubscriptionId, getStoredPushSubscriptionId, unsubscribe
const notificationsApi = getNotifications() const notificationsApi = getNotifications()
const UNSUBSCRIBE_PUSH = async ( const UNSUBSCRIBE_PUSH = async (subscriptionId: string, options?: ServiceCallOptions): Promise<ServiceResult<{ deleted: boolean }>> => {
subscriptionId: string,
options?: ServiceCallOptions
): Promise<ServiceResult<{ deleted: boolean }>> => {
try { try {
await notificationsApi.notificationsControllerUnsubscribePush(subscriptionId) await notificationsApi.notificationsControllerUnsubscribePush(subscriptionId)