Removing unnecessary constructor

This commit is contained in:
Jeff Avallone 2018-06-07 21:53:15 -04:00
parent 03ef9b2203
commit d3a0746ebb

View File

@ -22,12 +22,8 @@ const localeToAvailable = (locale, available, defaultLocale) => {
};
class LocaleSwitcher extends React.PureComponent {
constructor() {
super();
this.state = {
state = {
current: localeToAvailable(i18n.language || '', Object.keys(locales), 'en')
};
}
localeSelector = React.createRef()