Spaces:
Running
Running
axeronis commited on
Commit ·
2294473
1
Parent(s): ef1a196
fix: correct toast import and method names in AppointmentDetails
Browse files
frontend/components/bookings/AppointmentDetails.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { ru } from 'date-fns/locale'
|
|
| 5 |
import { User, Phone, Mail, Clock, Calendar, CheckCircle2, Circle, XCircle, AlertCircle, FileText } from 'lucide-react'
|
| 6 |
import { cn } from '@/lib/utils'
|
| 7 |
import { useState } from 'react'
|
| 8 |
-
import { useToast } from '@/
|
| 9 |
|
| 10 |
interface AppointmentDetailsProps {
|
| 11 |
appointment: any
|
|
@@ -14,7 +14,7 @@ interface AppointmentDetailsProps {
|
|
| 14 |
}
|
| 15 |
|
| 16 |
export function AppointmentDetails({ appointment, onClose, onStatusChange }: AppointmentDetailsProps) {
|
| 17 |
-
const { showSuccess, showError } = useToast()
|
| 18 |
const [isUpdating, setIsUpdating] = useState(false)
|
| 19 |
|
| 20 |
if (!appointment) {
|
|
|
|
| 5 |
import { User, Phone, Mail, Clock, Calendar, CheckCircle2, Circle, XCircle, AlertCircle, FileText } from 'lucide-react'
|
| 6 |
import { cn } from '@/lib/utils'
|
| 7 |
import { useState } from 'react'
|
| 8 |
+
import { useToast } from '@/contexts/ToastContext'
|
| 9 |
|
| 10 |
interface AppointmentDetailsProps {
|
| 11 |
appointment: any
|
|
|
|
| 14 |
}
|
| 15 |
|
| 16 |
export function AppointmentDetails({ appointment, onClose, onStatusChange }: AppointmentDetailsProps) {
|
| 17 |
+
const { success: showSuccess, error: showError } = useToast()
|
| 18 |
const [isUpdating, setIsUpdating] = useState(false)
|
| 19 |
|
| 20 |
if (!appointment) {
|