diff options
author | Emiliano Ciavatta | 2020-09-26 10:05:27 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-09-26 10:05:27 +0000 |
commit | 44af615b32faf53c04cd38cb63782cf1b1332c94 (patch) | |
tree | f51d0bd469421eb1aba698bfa4ec0ab2853d26f2 /frontend/src/views/Header.js | |
parent | 05678b74d98247c957faa1ca3d0bafc5f68974d1 (diff) |
General refactor
Diffstat (limited to 'frontend/src/views/Header.js')
-rw-r--r-- | frontend/src/views/Header.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/src/views/Header.js b/frontend/src/views/Header.js index deb3ab7..e2d0e6a 100644 --- a/frontend/src/views/Header.js +++ b/frontend/src/views/Header.js @@ -3,6 +3,7 @@ import Typed from 'typed.js'; import './Header.scss'; import {Button} from "react-bootstrap"; import {filtersDefinitions, filtersNames} from "../components/filters/FiltersDefinitions"; +import {Link} from "react-router-dom"; class Header extends Component { @@ -68,7 +69,9 @@ class Header extends Component { <div className="col"> <div className="header-buttons"> <Button variant="pink" onClick={this.props.onOpenFilters}>filters</Button> - <Button variant="purple" onClick={this.props.onOpenUpload}>pcaps</Button> + <Link to="/pcaps"> + <Button variant="purple">pcaps</Button> + </Link> <Button variant="deep-purple" onClick={this.props.onOpenRules}>rules</Button> <Button variant="indigo" onClick={this.props.onOpenServices}>services</Button> <Button variant="blue" onClick={this.props.onOpenConfig} |