refactor: convert function expressions to declarations (#4926)
This commit is contained in:
committed by
GitHub
parent
c0236536dd
commit
141a2eba56
@ -1,12 +1,14 @@
|
||||
import controlComponent from './StringControl';
|
||||
import previewComponent from './StringPreview';
|
||||
|
||||
const Widget = (opts = {}) => ({
|
||||
name: 'string',
|
||||
controlComponent,
|
||||
previewComponent,
|
||||
...opts,
|
||||
});
|
||||
function Widget(opts = {}) {
|
||||
return {
|
||||
name: 'string',
|
||||
controlComponent,
|
||||
previewComponent,
|
||||
...opts,
|
||||
};
|
||||
}
|
||||
|
||||
export const NetlifyCmsWidgetString = { Widget, controlComponent, previewComponent };
|
||||
export default NetlifyCmsWidgetString;
|
||||
|
Reference in New Issue
Block a user