fix(client): show editor for React challenges

This commit is contained in:
Oliver Eyton-Williams
2020-09-09 19:22:48 +02:00
committed by Mrugesh Mohapatra
parent 07cf7e3e72
commit 1ce354a179
2 changed files with 14 additions and 0 deletions

View File

@ -249,6 +249,19 @@ class MultifileEditor extends Component {
/> />
</ReflexElement> </ReflexElement>
)} )}
{visibleEditors.indexjsx && (
<ReflexElement {...reflexProps} {...resizeProps}>
<Editor
challengeFiles={challengeFiles}
containerRef={containerRef}
description={targetEditor === 'indexjsx' ? description : null}
fileKey='indexjsx'
key='indexjsx'
resizeProps={resizeProps}
theme={editorTheme}
/>
</ReflexElement>
)}
</ReflexContainer> </ReflexContainer>
</ReflexElement> </ReflexElement>
</ReflexContainer> </ReflexContainer>

View File

@ -390,6 +390,7 @@ export const query = graphql`
contents contents
head head
tail tail
editableRegionBoundaries
} }
} }
} }