b1a5ea95d3
* No need for set width for base Card anymore * entries are not required * Redirect from Dashboard to first collection if publish mode is simple * collection inference: Add more synonyms to description * Implemented a better default preview for editing entries * Add label field in default preview for small text values * Added margin for default preview
11 lines
275 B
JavaScript
11 lines
275 B
JavaScript
import React, { PropTypes } from 'react';
|
|
import previewStyle from './defaultPreviewStyle';
|
|
|
|
export default function DatePreview({ value }) {
|
|
return <div style={previewStyle}>{value ? value.toString() : null}</div>;
|
|
}
|
|
|
|
DatePreview.propTypes = {
|
|
value: PropTypes.node,
|
|
};
|