2017-06-29 12:54:02 -06:00
|
|
|
import * as React from "react";
|
|
|
|
import { timezoneMismatch } from "../../devices/timezones/guess_timezone";
|
2017-08-31 16:47:22 -06:00
|
|
|
import { Content } from "../../constants";
|
2019-04-02 13:59:37 -06:00
|
|
|
import { t } from "../../i18next_wrapper";
|
2017-06-29 12:54:02 -06:00
|
|
|
|
|
|
|
interface TzWarningProps {
|
|
|
|
deviceTimezone: string | undefined;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function TzWarning({ deviceTimezone }: TzWarningProps) {
|
|
|
|
return <div className="note">
|
2017-08-31 16:47:22 -06:00
|
|
|
{timezoneMismatch(deviceTimezone) ? t(Content.FARM_EVENT_TZ_WARNING) : ""}
|
2017-06-29 12:54:02 -06:00
|
|
|
</div>;
|
|
|
|
}
|