Fakultas Ilmu Komputer UI

Login.jsx 906 Bytes
Newer Older
1
2
import React from 'react';
import { Grid, Segment } from 'semantic-ui-react';
3
4
import FormLogin from './components/LoginForm';
// import SSOLogin from './components/SSOLogin';
5
6

export default class Login extends React.Component {
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

  static defaultProps = {
    children: null,
  };

  static propTypes = {
    children: React.PropTypes.oneOfType([
      React.PropTypes.arrayOf(React.PropTypes.node),
      React.PropTypes.node,
    ]),
  };

  render = () => (
    <Grid columns={2} relaxed>
      <Grid.Column>
        <Segment basic>
23
          <LoginForm url="/login/company" imgSrc="logo.png" imgSize="small" />
24
25
26
27
28
29
          {this.props.children}
        </Segment>
      </Grid.Column>

      <Grid.Column>
        <Segment basic>
30
          <LoginForm url="/login/sso" imgSrc="login.png" imgSize="small" />
31
32
33
34
35
          {this.props.children}
        </Segment>
      </Grid.Column>

    </Grid>
36
37
38
        )
}