From d21de047e8a1099c23ca63ebb95f974e96be7b4e Mon Sep 17 00:00:00 2001 From: Matej Genci Date: Thu, 12 Mar 2020 21:34:17 +0000 Subject: [PATCH] Make code editors for JS and ASM read-only --- src/App.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 059c720..4f8a8e7 100644 --- a/src/App.js +++ b/src/App.js @@ -28,7 +28,8 @@ class App extends React.Component { wacc: { code: newCode, markers: [{ startRow: 0, startCol: 2, endRow: 0, endCol: 20, className: 'warning', type: 'text' }] - } + }, + graphData: [{}] }) } @@ -59,11 +60,13 @@ class App extends React.Component { + markers={this.state.js.markers} + readOnly={true} /> + markers={this.state.arm.markers} + readOnly={true} />
-- GitLab