add styles and adjust the monacoEditorMock to show backend challenges

This commit is contained in:
ValeraS
2018-09-13 17:07:12 +03:00
committed by Mrugesh Mohapatra
parent 5869ea4b33
commit aaafd215da
2 changed files with 22 additions and 1 deletions

View File

@ -1,4 +1,18 @@
/* eslint-disable */
import React from 'react';
export default () => React.createElement('div');
export default (props) => {
const { width = '100%', height = '100%' } = props;
const fixedWidth = width.toString().indexOf('%') !== -1 ?
width : `${width}px`;
const fixedHeight = height.toString().indexOf('%') !== -1 ?
height : `${height}px`;
const style = {
width: fixedWidth,
height: fixedHeight
}; return (
<div
style={style}
className="react-monaco-editor-container" />
);
}

View File

@ -10,6 +10,7 @@ import ChallengeDescription from '../components/Challenge-Description';
import TestSuite from '../components/Test-Suite';
import Output from '../components/Output';
import CompletionModal from '../components/CompletionModal';
import HelpModal from '../components/HelpModal';
import ProjectToolPanel from '../project/Tool-Panel';
import {
executeChallenge,
@ -29,6 +30,11 @@ import {
import Spacer from '../../../components/util/Spacer';
import { createGuideUrl } from '../utils';
import '../components/tool-panel.css';
import '../components/preview.css';
import '../components/test-suite.css';
import '../classic/classic.css';
// provided by redux form
const reduxFormPropTypes = {
fields: PropTypes.object,
@ -157,6 +163,7 @@ export class BackEnd extends PureComponent {
<Spacer />
</Col>
<CompletionModal />
<HelpModal />
</Row>
);
}