2017-11-04 14:22:31 +01:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { CardActions, Button } from 'react-mdl';
|
|
|
|
|
|
|
|
class AuthenticationCustomComponent extends React.Component {
|
|
|
|
static propTypes = {
|
|
|
|
authDetails: PropTypes.object.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const authDetails = this.props.authDetails;
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<p>{authDetails.message}</p>
|
|
|
|
<CardActions style={{ textAlign: 'center' }}>
|
|
|
|
<a href={authDetails.path}>
|
|
|
|
<Button raised colored>
|
2018-01-17 09:45:38 +01:00
|
|
|
Sign In
|
2017-11-04 14:22:31 +01:00
|
|
|
</Button>
|
|
|
|
</a>
|
|
|
|
</CardActions>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default AuthenticationCustomComponent;
|