feat: upgrade to Emotion 10 (#2166)
This commit is contained in:
@ -26,11 +26,11 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"cross-env": "^5.2.0",
|
||||
"webpack": "^4.16.1",
|
||||
"webpack-cli": "^3.1.0"
|
||||
"webpack": "^4.29.6",
|
||||
"webpack-cli": "^3.2.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"emotion": "^9.2.6",
|
||||
"@emotion/core": "^10.0.9",
|
||||
"react": "^16.4.1"
|
||||
},
|
||||
"localExternals": [
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { DateControl } from 'netlify-cms-widget-date';
|
||||
import { controlComponent as DateControl } from 'netlify-cms-widget-date';
|
||||
|
||||
export default class DateTimeControl extends React.Component {
|
||||
render() {
|
||||
|
@ -1,2 +1,11 @@
|
||||
export DateTimeControl from './DateTimeControl';
|
||||
export { DatePreview as DateTimePreview } from 'netlify-cms-widget-date';
|
||||
import controlComponent from './DateTimeControl';
|
||||
import { previewComponent } from 'netlify-cms-widget-date';
|
||||
|
||||
const Widget = (opts = {}) => ({
|
||||
name: 'datetime',
|
||||
controlComponent,
|
||||
previewComponent,
|
||||
...opts,
|
||||
});
|
||||
|
||||
export { Widget as default, controlComponent, previewComponent };
|
||||
|
Reference in New Issue
Block a user