Farmbot-Web-App/frontend/farm_designer/farm_events/tz_warning.tsx

15 lines
449 B
TypeScript
Raw Normal View History

2017-06-29 12:54:02 -06:00
import * as React from "react";
import { timezoneMismatch } from "../../devices/timezones/guess_timezone";
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">
{timezoneMismatch(deviceTimezone) ? t(Content.FARM_EVENT_TZ_WARNING) : ""}
2017-06-29 12:54:02 -06:00
</div>;
}