Last active
January 21, 2019 16:03
-
-
Save Franpastoragusti/c81630703f3fe2bb855de567e0b80acd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* /src/components/auth/logout.jsx */ | |
import React from "react"; | |
import { AuthConsumer } from "../../providers/authProvider"; | |
export const Logout = () => ( | |
<AuthConsumer> | |
{({ logout }) => { | |
logout(); | |
return <span>loading</span>; | |
}} | |
</AuthConsumer> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment