From 7f4cc5d3f3f92338a464853c182b9d6a3ea850eb Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Sun, 27 Sep 2020 18:43:27 +0200 Subject: Replaced the old fields with the new ones --- frontend/src/components/Connection.js | 8 +-- frontend/src/components/ConnectionContent.js | 68 +++++----------------- frontend/src/components/ConnectionContent.scss | 12 ++-- frontend/src/components/MessageAction.js | 4 +- frontend/src/components/fields/ButtonField.js | 9 +++ frontend/src/components/fields/ButtonField.scss | 4 ++ frontend/src/components/fields/CheckField.scss | 4 ++ frontend/src/components/fields/ChoiceField.js | 15 ++++- frontend/src/components/fields/ChoiceField.scss | 2 +- .../src/components/fields/extensions/ColorField.js | 17 +++--- .../components/fields/extensions/ColorField.scss | 9 ++- frontend/src/components/panels/PcapPane.js | 7 ++- frontend/src/components/panels/RulePane.js | 12 +--- 13 files changed, 78 insertions(+), 93 deletions(-) (limited to 'frontend/src/components') diff --git a/frontend/src/components/Connection.js b/frontend/src/components/Connection.js index 1149584..7887185 100644 --- a/frontend/src/components/Connection.js +++ b/frontend/src/components/Connection.js @@ -1,8 +1,9 @@ import React, {Component} from 'react'; import './Connection.scss'; -import {Button, Form, OverlayTrigger, Popover} from "react-bootstrap"; +import {Form, OverlayTrigger, Popover} from "react-bootstrap"; import backend from "../backend"; import {formatSize} from "../utils"; +import ButtonField from "./fields/ButtonField"; class Connection extends Component { @@ -96,9 +97,8 @@ class Connection extends Component {