mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
28 lines
788 B
React
28 lines
788 B
React
|
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>
|
||
|
Click to Auhtenticate
|
||
|
</Button>
|
||
|
</a>
|
||
|
</CardActions>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default AuthenticationCustomComponent;
|