refactor: convert function expressions to declarations (#4926)

This commit is contained in:
Vladislav Shkodin
2021-02-08 20:01:21 +02:00
committed by GitHub
parent c0236536dd
commit 141a2eba56
241 changed files with 3444 additions and 2933 deletions

View File

@ -2,13 +2,15 @@ import controlComponent from './NumberControl';
import previewComponent from './NumberPreview';
import schema from './schema';
const Widget = (opts = {}) => ({
name: 'number',
controlComponent,
previewComponent,
schema,
...opts,
});
function Widget(opts = {}) {
return {
name: 'number',
controlComponent,
previewComponent,
schema,
...opts,
};
}
export const NetlifyCmsWidgetNumber = { Widget, controlComponent, previewComponent };
export default NetlifyCmsWidgetNumber;