diff --git a/packages/app-js/package.json b/packages/app-js/package.json index 68ba8e48ce..31fc16a30d 100644 --- a/packages/app-js/package.json +++ b/packages/app-js/package.json @@ -12,7 +12,6 @@ "dependencies": { "@babel/runtime": "^7.3.4", "@polkadot/ui-app": "^0.24.36", - "codeflask": "1.4.0", "snappyjs": "^0.6.0" } } diff --git a/packages/app-js/src/Playground.tsx b/packages/app-js/src/Playground.tsx index 835afce98c..0f68bc7761 100644 --- a/packages/app-js/src/Playground.tsx +++ b/packages/app-js/src/Playground.tsx @@ -13,7 +13,7 @@ import { withRouter } from 'react-router'; import { Transition } from 'semantic-ui-react'; import snappy from 'snappyjs'; import { withApi, withMulti } from '@polkadot/ui-api/index'; -import { Button, Dropdown } from '@polkadot/ui-app/index'; +import { Button, Dropdown, Editor } from '@polkadot/ui-app/index'; import uiKeyring from '@polkadot/ui-keyring'; import * as util from '@polkadot/util'; import * as hashing from '@polkadot/util-crypto'; @@ -24,7 +24,6 @@ import snippets from './snippets'; import translate from './translate'; import { STORE_EXAMPLES, STORE_SELECTED, CUSTOM_LABEL } from './constants'; -import Editor from './Editor'; import Output from './Output'; import ActionButtons from './ActionButtons'; @@ -110,7 +109,7 @@ class Playground extends React.PureComponent { } render () { - const { isDevelopment, t } = this.props; + const { t } = this.props; const { animated, isCustomExample, isRunning, logs, options, selected } = this.state; const snippetName = selected.type === 'custom' ? selected.text : undefined; @@ -130,7 +129,6 @@ class Playground extends React.PureComponent {
void }; diff --git a/packages/ui-app/src/index.tsx b/packages/ui-app/src/index.tsx index 505bf47655..406e91fdfb 100644 --- a/packages/ui-app/src/index.tsx +++ b/packages/ui-app/src/index.tsx @@ -13,6 +13,7 @@ export { default as CardSummary } from './CardSummary'; export { default as Chart } from './Chart'; export { default as CopyButton } from './CopyButton'; export { default as Dropdown } from './Dropdown'; +export { default as Editor } from './Editor'; export { default as Event } from './Event'; export { default as Icon } from './Icon'; export { default as IdentityIcon } from './IdentityIcon';