blob: ccb8e87d6170f2c53e74110051c4a6e809e79be9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import React from "react";
import PropTypes from "prop-types";
import { Link } from "react-router-dom";
import Button from "@mui/material/Button";
class Header extends React.Component {
static propTypes = {
clearToken: PropTypes.func.isRequired
};
render() {
return (
<div id="header">
<div id="title">
<Link to="/">✨ SOC Dashboard</Link>
</div>
<div id="right">
<Button
variant="contained"
color="error"
onClick={this.props.clearToken}
>
Sign out
</Button>
</div>
</div>
);
}
}
export default Header;
|