refactor: cleanup

This commit is contained in:
David Ralph
2021-08-15 22:28:37 +01:00
parent 5e4a14ba2c
commit 4f5233fab9
44 changed files with 133 additions and 234 deletions

View File

@@ -1,10 +1,10 @@
import { PureComponent } from 'react';
import EventBus from '../../../modules/helpers/eventbus';
import { WiHumidity, WiWindy, WiBarometer, WiCloud } from 'weather-icons-react';
import WeatherIcon from './WeatherIcon';
import WindDirectionIcon from './WindDirectionIcon';
import { WiHumidity, WiWindy, WiBarometer, WiCloud } from 'weather-icons-react';
import EventBus from '../../../modules/helpers/eventbus';
import './weather.scss';
@@ -133,10 +133,6 @@ export default class Weather extends PureComponent {
return (localStorage.getItem(setting) === 'true');
};
if (enabled('offlineMode')) {
return null;
}
if (this.state.location === window.language.widgets.weather.not_found) {
return (<div className='weather'>
<span className='loc'>{this.state.location}</span>