Skip to content

Commit

Permalink
revert: Provide errors to editor, though they're unusable
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Jul 3, 2024
1 parent b87d113 commit 7d9724b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/code-editor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const highlightStyle = HighlightStyle.define([
* @param {object} props
* @param {string} props.value
* @param {(value: string) => void} props.onInput
* @param {any} props.error - Unused at this time
* @param {string} props.slug
* @param {string} [props.class]
*/
Expand Down
1 change: 1 addition & 0 deletions src/components/controllers/repl/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export function Repl({ code }) {
<CodeEditor
class={style.code}
value={editorCode}
error={error}
slug={query.example}
onInput={onEditorInput}
/>
Expand Down
1 change: 1 addition & 0 deletions src/components/controllers/tutorial/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export function Tutorial({ html, meta }) {
<CodeEditor
class={style.code}
value={editorCode}
error={error}
slug={path}
onInput={setEditorCode}
/>
Expand Down

0 comments on commit 7d9724b

Please sign in to comment.