message: sc-mc: Refactor code for editor
diff: @@ -70,9 +70,7 @@ export function ScMcExerciseEditor(props: ScMcExerciseProps) {
  >
  <ScMcExerciseRenderer {...props} isEmpty={isEmpty} />
  </PreviewOverlay>
  - {editable ? (
  - <div>
  - {nestedFocus && !previewActive ? (
  + {editable && nestedFocus && !previewActive && (
  <React.Fragment>
  {state.answers.map((answer, index) => {
  return (
  @@ -98,7 +96,7 @@ export function ScMcExerciseEditor(props: ScMcExerciseProps) {
  {props.config.i18n.answer.addLabel}
  </AddButton>
  </React.Fragment>
  - ) : null}
  + )}
  {props.renderIntoSettings(
  <React.Fragment>
  {props.config.i18n.isSingleChoice.label}
  @@ -107,17 +105,11 @@ export function ScMcExerciseEditor(props: ScMcExerciseProps) {
  value={state.isSingleChoice.value ? 'sc' : 'mc'}
  onChange={handleSCMCChange}
  >
  - <option value="mc">
  - {props.config.i18n.types.multipleChoice}
  - </option>
  - <option value="sc">
  - {props.config.i18n.types.singleChoice}
  - </option>
  + <option value="mc">{props.config.i18n.types.multipleChoice}</option>
  + <option value="sc">{props.config.i18n.types.singleChoice}</option>
  </select>
  </React.Fragment>
  )}
  - </div>
  - ) : null}
  </React.Fragment>
  )
  