Initial Auth integration

This commit is contained in:
Barry Low committed 2018-10-11 14:53:58 -07:00
1 parent 27c32184b2
commit 401fb88e0e
8 files changed
+53 -158

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import React from 'react'
import { MessageCard } from '@advancedalgos/web-components'
const Callback = () => <MessageCard message='Authenticating...' />
export default Callback
+15
View File
@@ -0,0 +1,15 @@
import React from 'react'
import PropTypes from 'prop-types'
import Button from '@material-ui/core/Button'
export const LoggedOut = ({ auth }) => (
<div onClick={() => auth.login()}>
<Button color='inherit'>Login / Sign up</Button>
</div>
)
LoggedOut.propTypes = {
auth: PropTypes.object.isRequired
}
export default LoggedOut
+1 -1
View File
@@ -93,7 +93,7 @@ class Header extends Component {
color='inherit'
className={classes.toolbarTitle}
>
Teams
&nbsp;
</Typography>
<IconButton