Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
const { actions } = this.props;
actions.getGithubInfo();
GitHubCalendar(".calendar", "ecmadao");
}
componentDidMount() {
const { actions, repos } = this.props;
actions.getGithubInfo();
GitHubCalendar("#calendar", "ecmadao");
if (!repos.length) {
actions.getGithubRepos();
}
}
componentWillReceiveProps(nextProps) {
new GitHubCalendar('.calendar', nextProps.data.viewer.login)
}
componentDidMount() {
if(this.props.data && this.props.data.viewer) {
new GitHubCalendar('.calendar', this.props.data.viewer.login)
}
}