From b1600adec47a04f60e1da07d94a3ed3906ff5aee Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 14 Jun 2018 16:44:21 -0400 Subject: starter files --- .../frontend/components/Signout.js | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 finished-application/frontend/components/Signout.js (limited to 'finished-application/frontend/components/Signout.js') diff --git a/finished-application/frontend/components/Signout.js b/finished-application/frontend/components/Signout.js new file mode 100644 index 0000000..ae87631 --- /dev/null +++ b/finished-application/frontend/components/Signout.js @@ -0,0 +1,25 @@ +import React, { Component } from 'react'; +import { Mutation } from 'react-apollo'; +import gql from 'graphql-tag'; +import { CURRENT_USER_QUERY } from './User'; + +const SIGN_OUT_MUTATION = gql` + mutation SIGN_OUT_MUTATION { + signout { + message + } + } +`; + +class Signout extends Component { + render() { + return ( + + {signout => } + + ); + } +} + +export default Signout; +export { SIGN_OUT_MUTATION }; -- cgit v1.3