mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +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 { 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);
|
||||
|
||||
Reference in New Issue
Block a user