Skip to content

Instantly share code, notes, and snippets.

@theskillwithin
Last active July 26, 2017 18:29
Show Gist options
  • Save theskillwithin/97b7cfc5724093941a11982aed6a9897 to your computer and use it in GitHub Desktop.
Save theskillwithin/97b7cfc5724093941a11982aed6a9897 to your computer and use it in GitHub Desktop.
Prototype style
import PropTypes from 'prop-types'
class Login extends React.Component {
constructor(props) {
super(props)
this.state = {}
}
render() {
return (
<div>
<img src='/assets/icon_logo.png' />
<form
className={`${gl.flexCenterAll} ${css.container}`}
onSubmit={e => this.handleSubmitForm(e)}
>
<TextField
name='password'
fullWidth
type='password'
hintText='Senha'
floatingLabelText='Senha'
minLength={4}
/>
<Button type='submit'>Send</Button>
</form>
</div>
)
}
}
Login.defaultProps = {
redirectHref: '/account/seller/services/transaction',
serviceType: 'service',
showMenu: false,
paginate: true,
}
Login.propTypes = {
redirectHref: React.PropTypes.string,
serviceType: React.PropTypes.string,
showMenu: React.PropTypes.bool,
paginate: React.PropTypes.bool,
}
export default Login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment