import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import * as Blockly from 'blockly/core'; import Breadcrumbs from '../Breadcrumbs'; import LanguageSelector from './LanguageSelector'; import RenderSelector from './RenderSelector'; import StatsSelector from './StatsSelector'; import Button from '@material-ui/core/Button'; import Paper from '@material-ui/core/Paper'; class Settings extends Component { componentDidMount(){ // Ensure that Blockly.setLocale is adopted in the component. // Otherwise, the text will not be displayed until the next update of the component. this.forceUpdate(); } render() { return (