2017-11-04 14:22:31 +01:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
2021-03-30 15:14:02 +02:00
|
|
|
import { CardActions, Button } from '@material-ui/core';
|
2017-11-04 14:22:31 +01:00
|
|
|
|
|
|
|
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' }}>
|
2021-05-21 14:01:28 +02:00
|
|
|
<a href={authDetails.path} style={{ width: '100%' }}>
|
|
|
|
<Button
|
|
|
|
variant="contained"
|
|
|
|
color="primary"
|
|
|
|
style={{ width: '150px', margin: '0 auto' }}
|
|
|
|
>
|
|
|
|
Sign In
|
|
|
|
</Button>
|
2017-11-04 14:22:31 +01:00
|
|
|
</a>
|
|
|
|
</CardActions>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default AuthenticationCustomComponent;
|