Fix: drag booking passes roomId to API; checked_out rooms available for new booking; remove time-based theme text
This commit is contained in:
@@ -82,6 +82,7 @@ export function CalendarPage() {
|
||||
const handleUpdate = async (id: string, data: Partial<Booking>) => {
|
||||
try {
|
||||
const updated = await api.bookings.update(slug, id, {
|
||||
roomId: data.roomId,
|
||||
guestName: data.guestName, guestEmail: data.guestEmail,
|
||||
checkIn: data.checkIn, checkOut: data.checkOut,
|
||||
adults: data.adults, children: data.children,
|
||||
|
||||
@@ -373,7 +373,7 @@ export function SettingsPage() {
|
||||
{([
|
||||
{ id: 'light', label: 'Светлая', desc: null },
|
||||
{ id: 'dark', label: 'Тёмная', desc: null },
|
||||
{ id: 'auto', label: 'Авто', desc: 'Светлая 7:00–22:00, тёмная ночью' },
|
||||
{ id: 'auto', label: 'Авто', desc: 'Следует системной теме устройства' },
|
||||
] as const).map(t => (
|
||||
<button
|
||||
key={t.id}
|
||||
|
||||
Reference in New Issue
Block a user