static-cms/src/components/Widgets/StringPreview.js
Cássio Souza b1a5ea95d3 Refinements & Preview Defaults (#167)
* 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
2016-11-23 16:23:32 -02:00

11 lines
255 B
JavaScript

import React, { PropTypes } from 'react';
import previewStyle from './defaultPreviewStyle';
export default function StringPreview({ value }) {
return <div style={previewStyle}>{ value }</div>;
}
StringPreview.propTypes = {
value: PropTypes.node,
};