From af1008f4e553f5048298597ba91683901e381563 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Wed, 18 Sep 2019 19:02:40 +0200 Subject: [PATCH] fix: wrap backend and project in Hotkeys Co-authored-by: moT01 --- .../Challenges/projects/backend/Show.js | 109 +++++++++--------- .../Challenges/projects/frontend/Show.js | 66 +++++------ 2 files changed, 85 insertions(+), 90 deletions(-) diff --git a/client/src/templates/Challenges/projects/backend/Show.js b/client/src/templates/Challenges/projects/backend/Show.js index a060a763932..3f08c18cf0d 100644 --- a/client/src/templates/Challenges/projects/backend/Show.js +++ b/client/src/templates/Challenges/projects/backend/Show.js @@ -185,67 +185,68 @@ export class BackEnd extends Component { const blockNameTitle = `${blockName} - ${title}`; return ( - - - - - - - - - {blockNameTitle} - - - {challengeType === backend ? ( -
+ + + + + + + + {blockNameTitle} + + - ) : ( - + ) : ( + + )} + - )} - -
- + - - - - - -
-
-
+ dimensions={this.state} + height={150} + output={output} + /> + + + + + + + + + ); } } diff --git a/client/src/templates/Challenges/projects/frontend/Show.js b/client/src/templates/Challenges/projects/frontend/Show.js index f61eaa9f539..aa145355b3d 100644 --- a/client/src/templates/Challenges/projects/frontend/Show.js +++ b/client/src/templates/Challenges/projects/frontend/Show.js @@ -110,42 +110,36 @@ export class Project extends Component { const blockNameTitle = `${blockName} - ${title}`; return ( - - - - - - - - - {blockNameTitle} - - - - -
- - - - -
-
-
+ + + + + + + + {blockNameTitle} + + + +
+ + + + +
+
+
+
); } }