Skip to content

Commit

Permalink
fix(site): fix imports in demo site
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisboustead committed Apr 15, 2019
1 parent 50f87de commit 75b6e57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions dev/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './bootstrap.js';
import CMS, { init } from 'netlify-cms';
import 'netlify-cms/dist/cms.css';
import { AsyncSelectControl, AsyncSelectPreview } from '../src';
import AsyncSelectWidget from '../src';

const config = {
backend: {
Expand Down Expand Up @@ -90,6 +90,10 @@ const config = {
],
};

CMS.registerWidget('async-select', AsyncSelectControl, AsyncSelectPreview);
CMS.registerWidget(
'async-select',
AsyncSelectWidget.AsyncSelectControl,
AsyncSelectWidget.AsyncSelectPreview
);

init({ config });
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (typeof window !== 'undefined') {

const exportObject = {
AsyncSelectControl,
AsyncSelectPreview
AsyncSelectPreview,
};

export default exportObject
export default exportObject;

0 comments on commit 75b6e57

Please sign in to comment.