время неработы с 3 ночи до 10 утра
This commit is contained in:
parent
1668cbe36b
commit
559f668112
@ -170,7 +170,7 @@ export default function HowItWorks() {
|
||||
<Icon21 />
|
||||
<Typography fontSize="18px">
|
||||
{" "}
|
||||
на сайте (в разработке)
|
||||
на сайте
|
||||
</Typography>
|
||||
</Box>
|
||||
<Box
|
||||
|
||||
@ -82,9 +82,9 @@ export default () => {
|
||||
const MscTime = 3; // Москва UTC+3;
|
||||
const moscowHour = (currentHourUTC + MscTime) % 24;
|
||||
const greetingMessage =
|
||||
moscowHour >= 10 && moscowHour < 15
|
||||
? workingHoursMessage
|
||||
: offHoursMessage;
|
||||
moscowHour >= 3 && moscowHour < 10
|
||||
? offHoursMessage
|
||||
: workingHoursMessage;
|
||||
|
||||
return {
|
||||
created_at: new Date().toISOString(),
|
||||
@ -123,7 +123,7 @@ export default () => {
|
||||
const message = getMessageFromFetchError(error);
|
||||
if (message) enqueueSnackbar(message);
|
||||
},
|
||||
onFetchStateChange: () => {},
|
||||
onFetchStateChange: () => { },
|
||||
enabled: Boolean(user),
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user