Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const AddLocation = ({actions}) => {
let button;
if (platform.isAndroid()) {
button = (
);
} else {
button = (
<button>+ ADD LOCATION</button>
);
}
return (
<div></div>
import {ListItem, Icon} from 'react-onsenui';
import {platform} from 'onsenui';
import * as Actions from '../actions';
import WeatherPage from './WeatherPage';
import WeatherIcon from '../components/WeatherIcon';
import {weatherCodeToColor} from '../util';
const styles = {
weatherIcon: {
color: '#fff',
textAlign: 'center',
width: platform.isAndroid() ? '36px' : '30px',
height: platform.isAndroid() ? '36px' : '30px',
lineHeight: platform.isAndroid() ? '36px' : '30px',
borderRadius: '6px',
fontSize: platform.isAndroid() ? '16px' : '14px'
},
buttons: {
fontSize: '20px',
color: '#cacaca'
},
refreshButton: {
margin: '0 25px 0 0'
},
removeButton: {
margin: '0 10px 0 0'
}
};
const Location = ({
const AddLocation = ({actions}) => {
let button;
if (platform.isAndroid()) {
button = (
);
} else {
button = (
<button>Add location</button>
);
}
return (
<div></div>
data() {
return {
isAndroid: platform.isAndroid()
};
},
{humidity}%
);
}
let flag = country
?
: null;
return (
{
actions.selectLocation(id);
navigator.pushPage({component: WeatherPage});
}} tappable>
<div>
</div>
<div>
<div>
{flag}
{name}
</div>
<div>
{subtitle}
</div>
</div>
<div>
<div> {
e.stopPropagation();
actions.fetchWeather(id);
}} className='list__item__label'>
Refresh</div></div>