diff --git a/packages/behavior-persea/src/controllers/script/component.jsx b/packages/behavior-persea/src/controllers/script/component.jsx index cdf2820..c8c9a93 100644 --- a/packages/behavior-persea/src/controllers/script/component.jsx +++ b/packages/behavior-persea/src/controllers/script/component.jsx @@ -23,12 +23,14 @@ const ScriptComponent = ({ ); }; -ScriptComponent.defaultProps = {}; +ScriptComponent.defaultProps = { + path: '/', +}; ScriptComponent.displayName = 'ScriptComponent'; ScriptComponent.propTypes = { - path: PropTypes.string.isRequired, + path: PropTypes.string, resource: PropTypes.string.isRequired, }; diff --git a/packages/react/src/components/code/index.jsx b/packages/react/src/components/code/index.jsx index 3dec33d..a5d75ec 100644 --- a/packages/react/src/components/code/index.jsx +++ b/packages/react/src/components/code/index.jsx @@ -18,15 +18,16 @@ const Code = ({ }) => ( onChange(event, value)} + setOptions={{useWorker: false}} tabSize={2} theme="monokai" - onChange={(value, event) => onChange(event, value)} value={code} + width="100%" /> );