{
- if (dashboardError) return Dashboard Error: {dashboardError.message}
- if (genuineError) return Genuine Error: {genuineError.message}
- return Error
- }}
- renderFinalUpdate={(deviceInfo: DeviceInfo) => (
- UPDATE FINAL FIRMARE (TEMPLATE + ACTION WIP) {deviceInfo.final}
- )}
- renderMcuUpdate={(deviceInfo: DeviceInfo) => (
- FLASH MCU (TEMPLATE + ACTION WIP) {deviceInfo.mcu}
- )}
- renderDashboard={this.renderDashboard}
- />
- )
- }
+function ManagerPage(): Node {
+ return (
+ {
+ if (dashboardError) return Dashboard Error: {dashboardError.message}
+ if (genuineError) return Genuine Error: {genuineError.message}
+ return Error
+ }}
+ renderFinalUpdate={(deviceInfo: DeviceInfo) => (
+ UPDATE FINAL FIRMARE (TEMPLATE + ACTION WIP) {deviceInfo.final}
+ )}
+ renderMcuUpdate={(deviceInfo: DeviceInfo) => (
+ FLASH MCU (TEMPLATE + ACTION WIP) {deviceInfo.mcu}
+ )}
+ renderDashboard={(device: Device, deviceInfo: DeviceInfo) => (
+
+ )}
+ renderDefault={(
+ device: ?Device,
+ deviceInfo: ?DeviceInfo,
+ dashboardError: ?Error,
+ isGenuine: ?boolean,
+ ) => (
+
+ )}
+ />
+ )
}
-export default translate()(ManagerPage)
+export default ManagerPage
diff --git a/src/components/SettingsPage/sections/Display.js b/src/components/SettingsPage/sections/Display.js
index 4e5df09f..1945e034 100644
--- a/src/components/SettingsPage/sections/Display.js
+++ b/src/components/SettingsPage/sections/Display.js
@@ -173,12 +173,6 @@ class TabProfile extends PureComponent {
/>