2020-03-23 20:24:17 +00:00
|
|
|
import React, { Component } from "react";
|
|
|
|
import { Button } from "semantic-ui-react";
|
2020-03-02 16:03:02 +00:00
|
|
|
|
|
|
|
export default class Dashboard extends Component {
|
2020-03-23 20:24:17 +00:00
|
|
|
handleLogOut = (e) => {
|
|
|
|
console.log(this.props);
|
|
|
|
this.props.logout();
|
|
|
|
};
|
2020-03-02 16:03:02 +00:00
|
|
|
|
2020-03-23 20:24:17 +00:00
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Button circular style={{ margin: "2em" }} onClick={this.handleLogOut}>
|
|
|
|
Go Home{" "}
|
|
|
|
</Button>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|