atsid/gcal-leave-scraper

View on GitHub
client/components/Login.js

Summary

Maintainability
A
0 mins
Test Coverage
const React = require('react');

const mui = require('material-ui');
const Paper = mui.Paper;

const Login = React.createClass({
  getInitialState() {
    return {};
  },

  getStyles() {
    return {
      width: '300px',
      height: '150px',
      padding: '20px',
      marginLeft: 'auto',
      marginRight: 'auto',
      marginTop: '10px',
    };
  },

  render() {
    return (
      <Paper
        zDepth={1}
        rounded={false}
        style={this.getStyles()}>
        <p>You must first <a href="/api/auth/google">Login</a>.</p>
      </Paper>
    );
  },
});

module.exports = Login;