🆙 Oepsie made it always night :)

This commit is contained in:
duckietm
2026-03-05 14:35:31 +01:00
parent 927e8da62e
commit e5f1798619
+5 -5
View File
@@ -1,4 +1,4 @@
import { FC, useEffect, useRef } from 'react';
import { FC, useEffect, useMemo, useRef, useState } from 'react';
import { GetConfigurationValue } from '../../api';
import { RoomWidgetView } from './RoomWidgetView';
@@ -58,18 +58,18 @@ export const HotelView: FC<{}> = props =>
const timezone = GetConfigurationValue<string>('timezone.settings', '');
/**
const timeOfDay = useMemo(() =>
{
const hour = getHourInTimezone(timezone);
return getTimeOfDay(hour);
}, [ timezone ]);
/**
const timeOfDay = 'sunset';
For debuging the diff views
*/
const timeOfDay = 'night';
const skyColor = SKY_COLORS[timeOfDay] ?? configBgColor ?? '#000';
const containerRef = useRef<HTMLDivElement>(null);