From 33be3ab1b22aaa1c16348fd863ba7850d363be6c Mon Sep 17 00:00:00 2001 From: Rick Watson Date: Mon, 29 Apr 2019 21:52:11 +0100 Subject: [PATCH] Remove unused fullDetails prop on status pages --- interface/src/containers/APConfiguration.js | 2 +- interface/src/containers/APStatus.js | 10 +++++----- interface/src/containers/NTPStatus.js | 10 +++++----- interface/src/containers/WiFiConfiguration.js | 2 +- interface/src/containers/WiFiStatus.js | 12 ++++++------ 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/interface/src/containers/APConfiguration.js b/interface/src/containers/APConfiguration.js index 0d0ae8b..e866595 100644 --- a/interface/src/containers/APConfiguration.js +++ b/interface/src/containers/APConfiguration.js @@ -29,7 +29,7 @@ class APConfiguration extends Component { - {selectedTab === "apStatus" && } + {selectedTab === "apStatus" && } {selectedTab === "apSettings" && } ) diff --git a/interface/src/containers/APStatus.js b/interface/src/containers/APStatus.js index b8bd5b8..c66c359 100644 --- a/interface/src/containers/APStatus.js +++ b/interface/src/containers/APStatus.js @@ -50,7 +50,7 @@ class APStatus extends Component { return data.active ? "Active" : "Inactive"; } - createListItems(data, fullDetails, classes){ + createListItems(data, classes){ return ( @@ -83,12 +83,12 @@ class APStatus extends Component { ); } - renderAPStatus(data, fullDetails, classes){ + renderAPStatus(data, classes){ return (
- {this.createListItems(data, fullDetails, classes)} + {this.createListItems(data, classes)}
: - data ? this.renderAPStatus(data, fullDetails, classes) + data ? this.renderAPStatus(data, classes) :
diff --git a/interface/src/containers/NTPStatus.js b/interface/src/containers/NTPStatus.js index aaf49ec..3b7f687 100644 --- a/interface/src/containers/NTPStatus.js +++ b/interface/src/containers/NTPStatus.js @@ -51,7 +51,7 @@ class NTPStatus extends Component { this.props.loadData(); } - createListItems(data, fullDetails, classes){ + createListItems(data, classes){ return ( @@ -104,11 +104,11 @@ class NTPStatus extends Component { ); } - renderNTPStatus(data, fullDetails, classes){ + renderNTPStatus(data, classes){ return (
- {this.createListItems(data, fullDetails, classes)} + {this.createListItems(data, classes)}
: - data ? this.renderNTPStatus(data, fullDetails, classes) + data ? this.renderNTPStatus(data, classes) :
diff --git a/interface/src/containers/WiFiConfiguration.js b/interface/src/containers/WiFiConfiguration.js index f2ac202..7d21952 100644 --- a/interface/src/containers/WiFiConfiguration.js +++ b/interface/src/containers/WiFiConfiguration.js @@ -43,7 +43,7 @@ class WiFiConfiguration extends Component { - {selectedTab === "wifiStatus" && } + {selectedTab === "wifiStatus" && } {selectedTab === "networkScanner" && } {selectedTab === "wifiSettings" && } diff --git a/interface/src/containers/WiFiStatus.js b/interface/src/containers/WiFiStatus.js index 5582e98..5744e74 100644 --- a/interface/src/containers/WiFiStatus.js +++ b/interface/src/containers/WiFiStatus.js @@ -58,7 +58,7 @@ class WiFiStatus extends Component { return status.dns_ip_1 + (status.dns_ip_2 ? ','+status.dns_ip_2 : ''); } - createListItems(data, fullDetails, classes) { + createListItems(data, classes) { return ( @@ -69,7 +69,7 @@ class WiFiStatus extends Component { { - (fullDetails && isConnected(data)) && + isConnected(data) && @@ -108,11 +108,11 @@ class WiFiStatus extends Component { ); } - renderWiFiStatus(data, fullDetails, classes) { + renderWiFiStatus(data, classes) { return (
- {this.createListItems(data, fullDetails, classes)} + {this.createListItems(data, classes)}
: - data ? this.renderWiFiStatus(data, fullDetails, classes) + data ? this.renderWiFiStatus(data, classes) :