diff --git a/components/CalendarTab.tsx b/components/CalendarTab.tsx index 30b58bf..26487b6 100644 --- a/components/CalendarTab.tsx +++ b/components/CalendarTab.tsx @@ -44,9 +44,6 @@ function AddEventModal({ defaultDate, onClose, onSaved }: { defaultDate: string; const selectedCal = CALENDAR_OPTIONS.find(c => c.owner === owner) || CALENDAR_OPTIONS[0] - const dateObj = date ? new Date(date + 'T00:00:00') : new Date() - const dateLabel = dateObj.toLocaleDateString('ru-RU', { weekday: 'short', day: 'numeric', month: 'long' }) - const save = async () => { if (!title.trim()) { setError('Введите название'); return } setSaving(true); setError('') @@ -59,148 +56,197 @@ function AddEventModal({ defaultDate, onClose, onSaved }: { defaultDate: string; } catch (e: any) { setError(e.message || 'Ошибка сохранения'); setSaving(false) } } - const fieldInputStyle: React.CSSProperties = { - padding: '14px 18px', borderRadius: 14, width: '100%', - background: 'rgba(255,255,255,0.04)', border: '1px solid rgba(255,255,255,0.07)', - color: 'var(--text-primary)', fontSize: 15, outline: 'none', fontFamily: 'inherit', - } - - const fieldLabelStyle: React.CSSProperties = { - fontSize: 11, color: 'var(--text-secondary)', fontWeight: 600, - marginBottom: 8, display: 'block', textTransform: 'uppercase', letterSpacing: '0.08em', - } - return ( -