mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
* moves login page styles to reusable component * Redirects successful login to homepage after 3s * Adds logout form * Adds logout page * Adds logout link to homepage * Adds gravatarURL to logged in user * Configure API Client to hit /me endpoint * Fetch user when the app loads * Configured API Client to make logout requests * Handle logout flow in redux * Logout form styles * Logout user when the logout form is submitted
23 lines
535 B
JavaScript
23 lines
535 B
JavaScript
import React, { Component, PropTypes } from 'react';
|
|
import radium from 'radium';
|
|
import componentStyles from './styles';
|
|
|
|
class AuthenticationFormWrapper extends Component {
|
|
static propTypes = {
|
|
children: PropTypes.node,
|
|
};
|
|
|
|
render () {
|
|
const { children } = this.props;
|
|
const { containerStyles, whiteTabStyles } = componentStyles;
|
|
|
|
return (
|
|
<div style={containerStyles}>
|
|
<div style={whiteTabStyles} />
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default radium(AuthenticationFormWrapper);
|