Fixed indentation

This commit is contained in:
Alejandro Celaya 2018-07-28 09:34:31 +02:00
parent e10028a2b9
commit 41a4f31c57

View file

@ -39,16 +39,16 @@ export default class CreateShortUrl extends React.Component {
onChange={e => this.setState({ [id]: e.target.value })} onChange={e => this.setState({ [id]: e.target.value })}
{...props} {...props}
/>; />;
const createDateInput = (id, placeholder, props = {}) => const createDateInput = (id, placeholder, props = {}) =>
<DatePicker <DatePicker
selected={this.state[id]} selected={this.state[id]}
className="form-control create-short-url__date-input" className="form-control create-short-url__date-input"
placeholderText={placeholder} placeholderText={placeholder}
onChange={date => this.setState({ [id]: date })} onChange={date => this.setState({ [id]: date })}
dateFormat="YYYY-MM-DD" dateFormat="YYYY-MM-DD"
readOnly readOnly
{...props} {...props}
/>; />;
return ( return (
<div className="short-urls-container"> <div className="short-urls-container">