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

19 lines
387 B
JavaScript
Raw Normal View History

2020-05-12 13:18:33 +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 (
2020-05-12 13:18:33 +00:00
<Button circular style={{ margin: '2em' }} onClick={this.handleLogOut}>
Go Home
{' '}
2020-03-23 20:24:17 +00:00
</Button>
);
}
}