1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/component/user/authentication-custom-component.jsx
Fredrik Strand Oseberg bd93c5d131 Fix/standalone pages (#300)
* feat: change layout

* fix: standalone banner styling

* fix: change styling for banner

* fix: login page

* fix: standalone pages

* fix: page tweaks

* fix: center text

* refactor: new user page

* refactor: remove uneccesary markup

* refactor: remove secondary actions from hosted

* fix: remove authdetails blob

* refactor: remove unused import

* fix: move overflow

* fix: add breakpoint to forgotten password
2021-05-21 14:01:28 +02:00

32 lines
983 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { CardActions, Button } from '@material-ui/core';
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} style={{ width: '100%' }}>
<Button
variant="contained"
color="primary"
style={{ width: '150px', margin: '0 auto' }}
>
Sign In
</Button>
</a>
</CardActions>
</div>
);
}
}
export default AuthenticationCustomComponent;