chore: refine named exports (#2249)
This commit is contained in:
committed by
Shawn Erquhart
parent
4db497b496
commit
b4041d3971
@ -3,7 +3,9 @@ import { fromJS } from 'immutable';
|
||||
import { render, fireEvent } from 'react-testing-library';
|
||||
import 'react-testing-library/cleanup-after-each';
|
||||
import 'jest-dom/extend-expect';
|
||||
import { controlComponent as SelectControl } from '../';
|
||||
import { NetlifyCmsWidgetSelect } from '../';
|
||||
|
||||
const SelectControl = NetlifyCmsWidgetSelect.controlComponent;
|
||||
|
||||
const options = [
|
||||
{ value: 'foo', label: 'Foo' },
|
||||
|
@ -1,4 +1,12 @@
|
||||
import controlComponent from './SelectControl';
|
||||
import previewComponent from './SelectPreview';
|
||||
export const NetlifyCmsWidgetSelect = { controlComponent, previewComponent };
|
||||
export { controlComponent, previewComponent };
|
||||
|
||||
const Widget = (opts = {}) => ({
|
||||
name: 'select',
|
||||
controlComponent,
|
||||
previewComponent,
|
||||
...opts,
|
||||
});
|
||||
|
||||
export const NetlifyCmsWidgetSelect = { Widget, controlComponent, previewComponent };
|
||||
export default NetlifyCmsWidgetSelect;
|
||||
|
Reference in New Issue
Block a user