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