Добавлен пакет react-hot-toast для уведомлений и обновлены конфигурации. Исправлены сообщения об ошибках на использование toast вместо alert. Обновлены типы GraphQL для поддержки новых полей в заказах. Оптимизировано форматирование расписания работы ПВЗ с группировкой дней.

This commit is contained in:
Bivekich
2025-06-29 03:36:20 +03:00
parent 18e1f3ffb1
commit d501ad3354
11 changed files with 403 additions and 376 deletions

View File

@ -1,15 +1,32 @@
"use client"
import { Toaster } from 'sonner'
import { Toaster } from 'react-hot-toast'
export const ToastProvider = () => {
return (
<Toaster
position="top-right"
richColors
closeButton
expand={false}
duration={4000}
toastOptions={{
duration: 4000,
style: {
background: '#fff',
color: '#333',
borderRadius: '8px',
boxShadow: '0 4px 12px rgba(0, 0, 0, 0.15)',
},
success: {
iconTheme: {
primary: '#10B981',
secondary: '#fff',
},
},
error: {
iconTheme: {
primary: '#EF4444',
secondary: '#fff',
},
},
}}
/>
)
}