diff options
Diffstat (limited to 'stepped-solutions/FINISHED/frontend/components/PleaseSignIn.js')
| -rw-r--r-- | stepped-solutions/FINISHED/frontend/components/PleaseSignIn.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/stepped-solutions/FINISHED/frontend/components/PleaseSignIn.js b/stepped-solutions/FINISHED/frontend/components/PleaseSignIn.js deleted file mode 100644 index 80cfdbf..0000000 --- a/stepped-solutions/FINISHED/frontend/components/PleaseSignIn.js +++ /dev/null @@ -1,22 +0,0 @@ -import { Query } from 'react-apollo'; -import { CURRENT_USER_QUERY } from './User'; -import Signin from './Signin'; - -const PleaseSignIn = props => ( - <Query query={CURRENT_USER_QUERY}> - {({ data, loading }) => { - if (loading) return <p>Loading...</p>; - if (!data.me) { - return ( - <div> - <p>Please Sign In before Continuing</p> - <Signin /> - </div> - ); - } - return props.children; - }} - </Query> -); - -export default PleaseSignIn; |
