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

19 lines
387 B
JavaScript

import React, { Component } from 'react';
import { Button } from 'semantic-ui-react';
export default class Dashboard extends Component {
handleLogOut = (e) => {
console.log(this.props);
this.props.logout();
};
render() {
return (
<Button circular style={{ margin: '2em' }} onClick={this.handleLogOut}>
Go Home
{' '}
</Button>
);
}
}