chore: refine named exports (#2249)
This commit is contained in:
committed by
Shawn Erquhart
parent
4db497b496
commit
b4041d3971
@ -1,5 +1,7 @@
|
||||
import React from 'react';
|
||||
import { controlComponent as DateControl } from 'netlify-cms-widget-date';
|
||||
import NetlifyCmsWidgetDate from 'netlify-cms-widget-date';
|
||||
|
||||
const DateControl = NetlifyCmsWidgetDate.controlComponent;
|
||||
|
||||
export default class DateTimeControl extends React.Component {
|
||||
render() {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import controlComponent from './DateTimeControl';
|
||||
import { previewComponent } from 'netlify-cms-widget-date';
|
||||
import NetlifyCmsWidgetDate from 'netlify-cms-widget-date';
|
||||
|
||||
const previewComponent = NetlifyCmsWidgetDate.previewComponent;
|
||||
const Widget = (opts = {}) => ({
|
||||
name: 'datetime',
|
||||
controlComponent,
|
||||
@ -9,4 +10,4 @@ const Widget = (opts = {}) => ({
|
||||
});
|
||||
|
||||
export const NetlifyCmsWidgetDatetime = { Widget, controlComponent, previewComponent };
|
||||
export { Widget as default, controlComponent, previewComponent };
|
||||
export default NetlifyCmsWidgetDatetime;
|
||||
|
Reference in New Issue
Block a user