chore: refine named exports (#2249)
This commit is contained in:
committed by
Shawn Erquhart
parent
4db497b496
commit
b4041d3971
@ -1,4 +1,12 @@
|
||||
import controlComponent from './ObjectControl';
|
||||
import previewComponent from './ObjectPreview';
|
||||
export const NetlifyCmsWidgetObject = { controlComponent, previewComponent };
|
||||
export { controlComponent, previewComponent };
|
||||
|
||||
const Widget = (opts = {}) => ({
|
||||
name: 'object',
|
||||
controlComponent,
|
||||
previewComponent,
|
||||
...opts,
|
||||
});
|
||||
|
||||
export const NetlifyCmsWidgetObject = { Widget, controlComponent, previewComponent };
|
||||
export default NetlifyCmsWidgetObject;
|
||||
|
Reference in New Issue
Block a user