From 0b334a8adeedb6611aaa3e196b703acb8239981a Mon Sep 17 00:00:00 2001 From: "rjwats@gmail.com" Date: Tue, 6 Mar 2018 20:58:36 +0000 Subject: [PATCH] use fragments where possible, and drop keys. --- .../src/components/SnackbarNotification.js | 1 - interface/src/containers/APStatus.js | 79 ++++++------ interface/src/containers/NTPStatus.js | 114 ++++++++---------- interface/src/containers/WiFiStatus.js | 112 ++++++++--------- interface/src/forms/APSettingsForm.js | 12 +- interface/src/forms/OTASettingsForm.js | 2 +- interface/src/forms/WiFiNetworkSelector.js | 35 +++--- interface/src/forms/WiFiSettingsForm.js | 2 +- 8 files changed, 164 insertions(+), 193 deletions(-) diff --git a/interface/src/components/SnackbarNotification.js b/interface/src/components/SnackbarNotification.js index cad65d7..044e0a1 100644 --- a/interface/src/components/SnackbarNotification.js +++ b/interface/src/components/SnackbarNotification.js @@ -61,7 +61,6 @@ class SnackbarNotification extends React.Component { message={{this.state.message}} action={ + + + + + + + + + IP + + + + + + + + + + + + + + + + + + + ); + } renderAPStatus(data, fullDetails, classes){ - const listItems = []; - - listItems.push( - - - - - - - ); - listItems.push(); - - listItems.push( - - IP - - - ); - listItems.push(); - - listItems.push( - - - - - - - ); - listItems.push(); - - listItems.push( - - - - - - - ); - listItems.push(); - return (
- {listItems} + + {this.createListItems(data, fullDetails, classes)} +