Skip to content

Commit

Permalink
OPIK-83 [UX improvements] DatasetItems should not be editable from th…
Browse files Browse the repository at this point in the history
…e UI (#226)
  • Loading branch information
andriidudar authored Sep 12, 2024
1 parent dce95eb commit 08b4b24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const CodeHighlighter: React.FunctionComponent<CodeHighlighterProps> = ({
PLUGINS_MAP[language],
EditorView.lineWrapping,
EditorState.readOnly.of(true),
EditorView.editable.of(false),
]}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const SyntaxHighlighter: React.FunctionComponent<SyntaxHighlighterProps> = ({
languageExtension,
EditorView.lineWrapping,
EditorState.readOnly.of(true),
EditorView.editable.of(false),
]}
/>
</div>
Expand Down

0 comments on commit 08b4b24

Please sign in to comment.