Removing unnecessary constructor

This commit is contained in:
Jeff Avallone 2018-06-07 21:53:15 -04:00
parent 03ef9b2203
commit d3a0746ebb
1 changed files with 2 additions and 6 deletions

View File

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