chore: refine named exports (#2249)
This commit is contained in:
committed by
Shawn Erquhart
parent
4db497b496
commit
b4041d3971
@ -4,7 +4,9 @@ import { last } from 'lodash';
|
||||
import { render, fireEvent, wait } from 'react-testing-library';
|
||||
import 'react-testing-library/cleanup-after-each';
|
||||
import 'jest-dom/extend-expect';
|
||||
import { controlComponent as RelationControl } from '../';
|
||||
import { NetlifyCmsWidgetRelation } from '../';
|
||||
|
||||
const RelationControl = NetlifyCmsWidgetRelation.controlComponent;
|
||||
|
||||
const fieldConfig = {
|
||||
name: 'post',
|
||||
|
@ -1,4 +1,12 @@
|
||||
import controlComponent from './RelationControl';
|
||||
import previewComponent from './RelationPreview';
|
||||
export const NetlifyCmsWidgetRelation = { controlComponent, previewComponent };
|
||||
export { controlComponent, previewComponent };
|
||||
|
||||
const Widget = (opts = {}) => ({
|
||||
name: 'relation',
|
||||
controlComponent,
|
||||
previewComponent,
|
||||
...opts,
|
||||
});
|
||||
|
||||
export const NetlifyCmsWidgetRelation = { Widget, controlComponent, previewComponent };
|
||||
export default NetlifyCmsWidgetRelation;
|
||||
|
Reference in New Issue
Block a user