Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var React = require('react');
var css=require("./image_select.scss");
var cn=require("classnames");
var Anime = require("react-anime").default;
var Image= React.createClass({
handleClick:function(){
this.props.onClick(this.props.url)
},
render:function(){
let background={
"backgroundImage":"url('"+this.props.url+"')",
}
return (
<div style="{background}">
<div></div>
</div>
)
}
})
var ImageSelect=React.createClass({
var React = require('react');
var css=require("./page_container.scss");
import {MdArrowBack, MdClose} from 'react-icons/lib/md';
import { Link } from 'react-router-dom'
var Anime = require("react-anime").default;
var Container=React.createClass({
getDefaultProps:function(){
return {
icon:"",
animate:true,
back:"/"
}
},
render:function(){
return (
<div>
i * 300}>
<span>
{this.props.icon=="back" &&
</span></div>
var React = require('react');
var SwitchCard=require("components/switch_card/switch_card");
import SceneCard from "components/scene_card/scene_card";
var Section=require("components/UI/section/section");
var HeaderCard=require("components/header/header_card");
var WeatherCard=require("components/temperature/temperature_outdoor");
var TemperatureCard=require("components/temperature/temperature_card");
var utils=require("utils/auth");
var storage=require("utils/storage");
var Anime = require("react-anime").default;
var Button=require("components/UI/button/button")
import { Link } from 'react-router-dom'
import { connect } from 'react-redux';
import store from 'store';
const HomePage = React.createClass({
contextTypes:{
router:React.PropTypes.object.isRequired
},
componentDidMount:function(){
this.setState({rendered:true})
if(!this.props.user.authenticated){
this.context.router.history.push("/auth")
}else{
utils.getUserState(this.props.token).then(function(state){
store.dispatch({