From d429a344ef34bb9289616dc7ca11c161fabce5d7 Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Fri, 16 Oct 2020 15:26:55 +0200 Subject: Refactor js arrow functions --- frontend/src/components/App.js | 2 +- frontend/src/components/Notifications.js | 2 +- frontend/src/components/Timeline.js | 2 +- frontend/src/components/filters/AdvancedFilters.js | 4 ++-- .../src/components/filters/ExitSearchFilter.js | 2 +- .../components/filters/RulesConnectionsFilter.js | 2 +- frontend/src/components/objects/Connection.js | 4 ++-- .../components/objects/ConnectionMatchedRules.js | 4 ++-- frontend/src/components/panels/ConnectionsPane.js | 10 +++++----- frontend/src/components/panels/PcapsPane.js | 6 +++--- frontend/src/components/panels/RulesPane.js | 16 ++++++++-------- frontend/src/components/panels/SearchPane.js | 22 +++++++++++----------- frontend/src/components/panels/ServicesPane.js | 10 +++++----- frontend/src/components/panels/StreamsPane.js | 6 +++--- 14 files changed, 46 insertions(+), 46 deletions(-) (limited to 'frontend/src/components') diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index 888ff86..e12a99d 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -27,7 +27,7 @@ class App extends Component { state = {}; componentDidMount() { - dispatcher.register("notifications", payload => { + dispatcher.register("notifications", (payload) => { if (payload.event === "connected") { this.setState({ connected: true, diff --git a/frontend/src/components/Notifications.js b/frontend/src/components/Notifications.js index a81eba1..0b47b43 100644 --- a/frontend/src/components/Notifications.js +++ b/frontend/src/components/Notifications.js @@ -107,7 +107,7 @@ class Notifications extends Component {