22 lines
459 B
JavaScript
22 lines
459 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>
|
||
|
)
|
||
|
}
|
||
|
}
|