From 808716ab90d6eee2a6a90fc96026fe1678568376 Mon Sep 17 00:00:00 2001 From: meriadec Date: Fri, 22 Jun 2018 14:44:18 +0200 Subject: [PATCH] Display device informations and enable/disable firmware update based on env --- src/components/ManagerPage/Dashboard.js | 14 ++++---------- src/components/ManagerPage/UpdateFirmwareButton.js | 4 +++- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/components/ManagerPage/Dashboard.js b/src/components/ManagerPage/Dashboard.js index 5b4eb971..f64df243 100644 --- a/src/components/ManagerPage/Dashboard.js +++ b/src/components/ManagerPage/Dashboard.js @@ -2,7 +2,6 @@ import React from 'react' import { translate } from 'react-i18next' -import { EXPERIMENTAL_FIRMWARE_UPDATE } from 'config/constants' import type { T, Device } from 'types/common' import Box from 'components/base/Box' @@ -35,15 +34,10 @@ const Dashboard = ({ device, deviceInfo, t }: Props) => ( - {EXPERIMENTAL_FIRMWARE_UPDATE ? ( - - ) : null} + diff --git a/src/components/ManagerPage/UpdateFirmwareButton.js b/src/components/ManagerPage/UpdateFirmwareButton.js index 6f9cedcb..ebeb884c 100644 --- a/src/components/ManagerPage/UpdateFirmwareButton.js +++ b/src/components/ManagerPage/UpdateFirmwareButton.js @@ -4,6 +4,8 @@ import { translate } from 'react-i18next' import type { T } from 'types/common' +import { EXPERIMENTAL_FIRMWARE_UPDATE } from 'config/constants' + import Button from 'components/base/Button' import Text from 'components/base/Text' import { getCleanVersion } from 'components/ManagerPage/FirmwareUpdate' @@ -25,7 +27,7 @@ const UpdateFirmwareButton = ({ t, firmware, installFirmware }: Props) => {t('app:manager.firmware.latest', { version: getCleanVersion(firmware.name) })} -