migrate date and datetime widgets

This commit is contained in:
Shawn Erquhart
2018-07-24 10:45:12 -04:00
parent 0e61613295
commit e80a407cee
19 changed files with 127 additions and 287 deletions

View File

@ -0,0 +1,13 @@
import React from 'react';
import PropTypes from 'prop-types';
import { WidgetPreviewContainer } from 'netlify-cms-ui-default';
const DatePreview = ({ value }) => (
<WidgetPreviewContainer>{value ? value.toString() : null}</WidgetPreviewContainer>
);
DatePreview.propTypes = {
value: PropTypes.object,
};
export default DatePreview;