Initial commit

This commit is contained in:
John Lyon-Smith
2018-02-22 17:57:27 -08:00
commit e80f5490d5
196 changed files with 38982 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import React from 'react'
import PropTypes from 'prop-types'
import { api } from '../helpers'
export class Logout extends React.Component {
static propTypes = {
history: PropTypes.oneOfType([PropTypes.array, PropTypes.object])
}
componentDidMount(event) {
api.logout().then(() => {
if (this.props.history) {
this.props.history.push('/')
}
})
}
render() {
return null
}
}