mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 15:36:18 +00:00
🆙 Oepsie made it always night :)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { FC, useEffect, useRef } from 'react';
|
import { FC, useEffect, useMemo, useRef, useState } from 'react';
|
||||||
import { GetConfigurationValue } from '../../api';
|
import { GetConfigurationValue } from '../../api';
|
||||||
import { RoomWidgetView } from './RoomWidgetView';
|
import { RoomWidgetView } from './RoomWidgetView';
|
||||||
|
|
||||||
@@ -58,18 +58,18 @@ export const HotelView: FC<{}> = props =>
|
|||||||
|
|
||||||
const timezone = GetConfigurationValue<string>('timezone.settings', '');
|
const timezone = GetConfigurationValue<string>('timezone.settings', '');
|
||||||
|
|
||||||
/**
|
|
||||||
const timeOfDay = useMemo(() =>
|
const timeOfDay = useMemo(() =>
|
||||||
{
|
{
|
||||||
const hour = getHourInTimezone(timezone);
|
const hour = getHourInTimezone(timezone);
|
||||||
|
|
||||||
return getTimeOfDay(hour);
|
return getTimeOfDay(hour);
|
||||||
}, [ timezone ]);
|
}, [ timezone ]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
const timeOfDay = 'sunset';
|
||||||
|
For debuging the diff views
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const timeOfDay = 'night';
|
|
||||||
|
|
||||||
|
|
||||||
const skyColor = SKY_COLORS[timeOfDay] ?? configBgColor ?? '#000';
|
const skyColor = SKY_COLORS[timeOfDay] ?? configBgColor ?? '#000';
|
||||||
|
|
||||||
const containerRef = useRef<HTMLDivElement>(null);
|
const containerRef = useRef<HTMLDivElement>(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user