diff options
| author | Kamran Ahmed <kamranahmed.se@gmail.com> | 2019-06-15 00:15:30 +0400 |
|---|---|---|
| committer | Kamran Ahmed <kamranahmed.se@gmail.com> | 2019-06-15 00:15:30 +0400 |
| commit | a6ef7592a201d59d0b7e21cde98e38339086f401 (patch) | |
| tree | 54628283293064e20e3e6d88cd5acb7e62a66843 /src/components/repository-list | |
| parent | Fixed watchers parameter to subscribers_count (#32) (diff) | |
| download | githunt-a6ef7592a201d59d0b7e21cde98e38339086f401.tar.gz | |
Update dependencies and add issue count
Diffstat (limited to 'src/components/repository-list')
| -rw-r--r-- | src/components/repository-list/list-item/index.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/components/repository-list/list-item/index.js b/src/components/repository-list/list-item/index.js index 54d3e47..8934c75 100644 --- a/src/components/repository-list/list-item/index.js +++ b/src/components/repository-list/list-item/index.js @@ -5,7 +5,7 @@ import './styles.css'; import moment from 'moment'; import Star from '../../icons/star'; import Fork from '../../icons/fork'; -import Watcher from '../../icons/watcher'; +import Issue from "../../icons/issue"; class ListItem extends React.Component { render() { @@ -39,22 +39,22 @@ class ListItem extends React.Component { href={ `${this.props.repository.html_url}/stargazers` } rel="noopener noreferrer" target="_blank"> - <Star/> + <Star /> { this.props.repository.stargazers_count.toLocaleString() } </a> <a className="muted-link d-inline-block mr-3" href={ `${this.props.repository.html_url}/network/members` } rel="noopener noreferrer" target="_blank"> - <Fork/> + <Fork /> { this.props.repository.forks.toLocaleString() } </a> <a className="muted-link d-inline-block mr-3" - href={ `${this.props.repository.html_url}/watchers` } + href={ `${this.props.repository.html_url}/issues` } rel="noopener noreferrer" target="_blank"> - <Watcher/> - { this.props.repository.subscribers_count.toLocaleString() } + <Issue /> + { this.props.repository.open_issues.toLocaleString() } </a> </div> </div> @@ -68,7 +68,7 @@ class ListItem extends React.Component { onError={ (e) => { e.target.src = '/img/logo.svg'; } } - alt={ this.props.repository.owner.login }/> + alt={ this.props.repository.owner.login } /> </a> </div> ); |
