chore: refine named exports (#2249)

This commit is contained in:
Tony Alves
2019-03-27 13:47:28 -07:00
committed by Shawn Erquhart
parent 4db497b496
commit b4041d3971
26 changed files with 185 additions and 179 deletions

View File

@ -1,6 +1,12 @@
import { withFileControl } from 'netlify-cms-widget-file';
const controlComponent = withFileControl({ forImage: true });
import NetlifyCmsWidgetFile from 'netlify-cms-widget-file';
import previewComponent from './ImagePreview';
export const NetlifyCmsWidgetImage = { controlComponent, previewComponent };
export { controlComponent, previewComponent };
const controlComponent = NetlifyCmsWidgetFile.withFileControl({ forImage: true });
const Widget = (opts = {}) => ({
name: 'image',
controlComponent,
...opts,
});
export const NetlifyCmsWidgetImage = { Widget, controlComponent, previewComponent };
export default NetlifyCmsWidgetImage;