SHARE
TWEET

Untitled

a guest Aug 21st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from "react";
  2. import { Button } from "react-bootstrap";
  3.  
  4. import API from "../../utils/API";
  5.  
  6. export class Dashboard extends React.Component {
  7.   disconnect = () => {
  8.     API.logout();
  9.     window.location = "/";
  10.   };
  11.   render() {
  12.     return (
  13.       <div className="Dashboard">
  14.         <h1>Dashboard</h1>
  15.         <Button onClick={this.disconnect} block bsSize="large" type="submit">
  16.           Se d├ęconnecter
  17.         </Button>
  18.       </div>
  19.     );
  20.   }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top