import React from 'react'
import DateAbstract from './DateAbstract'

const DateTimeEdit = props => {
  const options = {
    altFormat: 'd.m.Y',
    dateFormat: 'Y-m-d',
    ...props.options
  }

  return (
    <DateAbstract value={props.value} onChange={props.onChange} options={options}/>
  )
}

DateTimeEdit.propTypes = {
  onChange: React.PropTypes.func,
  value: React.PropTypes.string,
  options: React.PropTypes.object
}

export default DateTimeEdit

@@ -68,28 +68,24 @@
 %0A%0Aconst Date
-Time
 Edit = props
@@ -287,28 +287,24 @@
 %0A  )%0A%7D%0A%0ADate
-Time
 Edit.propTyp
@@ -437,12 +437,8 @@
 Date
-Time
 Edit

Use component name `DateEdit` in DateEdit.js