Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
? 'Loading...'
: getReplays.map(i => (
))}
);
}
}
export default compose(
withStyles(s),
graphql(homeQuery),
)(Home); // place the query object in the graphql decorator here so it's available in the this.props object
title: PropTypes.string.isRequired,
};
render() {
return (
<div>
<div>
<h1>{this.props.title}</h1>
<p>...</p>
</div>
</div>
);
}
}
export default withStyles(s)(Register);
/>
<div>
<button type="submit">
Log in
</button>
</div>
);
}
}
export default withStyles(s)(Login);
}}
/>
)}
);
}}
);
};
LevelPack.propTypes = {
name: PropTypes.string.isRequired,
};
export default withStyles(s)(LevelPack);
<time>
</time>
))}
));
TimeTable.propTypes = {
data: PropTypes.arrayOf(PropTypes.shape()),
};
const AllTimes = compose(
withStyles(s),
graphql(allTimesQuery, {
options: ownProps => ({
variables: {
LevelIndex: ownProps.LevelIndex,
},
}),
}),
)(props => {
const {
data: { getTimes, loading },
} = props;
return loading ? : ;
});
class Level extends React.Component {
constructor(props) {
})}
);
}
}
Kuskis.propTypes = {
data: PropTypes.shape({
loading: PropTypes.bool.isRequired,
getKuskis: PropTypes.array,
}).isRequired,
};
export default compose(
withStyles(s),
graphql(kuskiQuery),
)(Kuskis);
<
<span>
{start.format('ddd DD.MM.YYYY')}
</span>
<button type="button">
>
</button>
);
}
}
export default withStyles(s)(Battles);
variant="contained"
color="primary"
>
Login
)}
)}
);
}
}
export default withStyles(s)(Login);
import React from 'react';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './loading.css';
const Loading = () => (
<div>
<div>
<div>
<div>
<div>
</div>
</div>
);
export default withStyles(s)(Loading);
</div></div></div>
Editor
);
}
}
const mapStateToProps = state => {
const { sidebarVisible } = state.ui;
return { sidebarVisible };
};
export default withStyles(s)(
connect(
mapStateToProps,
{ toggleSidebar },
)(SideBar),
);