aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/views/Header.js
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-09-27 16:43:27 +0000
committerEmiliano Ciavatta2020-09-27 16:43:27 +0000
commit7f4cc5d3f3f92338a464853c182b9d6a3ea850eb (patch)
treec3aad08a839a6bbc81a02b849b5b41ddc00844e9 /frontend/src/views/Header.js
parent1412a34f64e234dbc7d4e6815b841699f4dd104a (diff)
Replaced the old fields with the new ones
Diffstat (limited to 'frontend/src/views/Header.js')
-rw-r--r--frontend/src/views/Header.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/frontend/src/views/Header.js b/frontend/src/views/Header.js
index a022636..0b82011 100644
--- a/frontend/src/views/Header.js
+++ b/frontend/src/views/Header.js
@@ -4,6 +4,7 @@ import './Header.scss';
import {Button} from "react-bootstrap";
import {filtersDefinitions, filtersNames} from "../components/filters/FiltersDefinitions";
import {Link} from "react-router-dom";
+import ButtonField from "../components/fields/ButtonField";
class Header extends Component {
@@ -68,16 +69,16 @@ class Header extends Component {
<div className="col">
<div className="header-buttons">
- <Button variant="pink" onClick={this.props.onOpenFilters}>filters</Button>
+ <ButtonField variant="pink" onClick={this.props.onOpenFilters} name="filters" bordered />
<Link to="/pcaps">
- <Button variant="purple">pcaps</Button>
+ <ButtonField variant="purple" name="pcaps" bordered />
</Link>
<Link to="/rules">
- <Button variant="deep-purple">rules</Button>
+ <ButtonField variant="deep-purple" name="rules" bordered />
</Link>
- <Button variant="indigo" onClick={this.props.onOpenServices}>services</Button>
- <Button variant="blue" onClick={this.props.onOpenConfig}
- disabled={false}>config</Button>
+ <ButtonField variant="indigo" onClick={this.props.onOpenServices} name="services" bordered />
+ <ButtonField variant="blue" onClick={this.props.onOpenConfig}
+ disabled={false} name="config" bordered />
</div>
</div>
</div>