Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from "react";
- import { Button } from "react-bootstrap";
- import API from "../../utils/API";
- export class Dashboard extends React.Component {
- disconnect = () => {
- API.logout();
- window.location = "/";
- };
- render() {
- return (
- <div className="Dashboard">
- <h1>Dashboard</h1>
- <Button onClick={this.disconnect} block bsSize="large" type="submit">
- Se déconnecter
- </Button>
- </div>
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement