From 781d75ccad513248b0ebc9d158b61a83c450c248 Mon Sep 17 00:00:00 2001 From: gabrielburnworth Date: Wed, 20 Sep 2017 16:13:05 -0700 Subject: [PATCH] remove old showUrl --- webpack/controls/show_url.tsx | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 webpack/controls/show_url.tsx diff --git a/webpack/controls/show_url.tsx b/webpack/controls/show_url.tsx deleted file mode 100644 index 67181dcc5..000000000 --- a/webpack/controls/show_url.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import * as React from "react"; -import { FallbackImg } from "../ui/fallback_img"; -import { PLACEHOLDER_FARMBOT } from "../farmware/images/image_flipper"; -import { t } from "i18next"; - -export const showUrl = (url: string, dirty: boolean) => { - if (dirty) { - return

{t("Press save to view.")}

; - } else { - if (url.includes(PLACEHOLDER_FARMBOT)) { - return
- - - {t("Webcam stream not available.")} -
- {t("Press ")}{t("EDIT")}{t(" to add a stream.")} -
-
; - } else { - return ; - } - } -};