import React, { Component } from 'react'; import { connect } from 'react-redux'; import { setLanguage } from '../actions/generalActions'; import MenuItem from '@material-ui/core/MenuItem'; import Select from '@material-ui/core/Select'; import { setBoard } from '../actions/boardAction'; import ReactCountryFlag from "react-country-flag"; import { MuiThemeProvider, createTheme } from '@material-ui/core/styles'; const theme = createTheme({ overrides: { MuiSelect: { select: { '&:focus': { backgroundColor: 'transparent', }, }, }, }, }); class NavbarSettings 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(); } handleChange = (event) => { this.props.setLanguage(event.target.value); } render() { return (