frontend/smart-hut/src/views/DashboardTest.js

18 lines
378 B
JavaScript
Raw Normal View History

2020-03-23 20:24:17 +00:00
import React, { Component } from "react";
import { Button } from "semantic-ui-react";
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-23 20:24:17 +00:00
render() {
return (
<Button circular style={{ margin: "2em" }} onClick={this.handleLogOut}>
Go Home{" "}
</Button>
);
}
}