Skip to content

Commit dba3435

Browse files
author
Evert Arias
committed
Update profile
1 parent 2ba317b commit dba3435

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ const octokit = new Octokit();
1515
class ProfileComponent extends React.Component {
1616
render() {
1717
return (
18-
<Profile>
18+
<Profile href={this.props.url}>
1919
<Photo src={this.props.avatar_url} />
2020
<Intro>
2121
<Name>{this.props.name}</Name>
22-
<Subtitle>
23-
<a href={this.props.url}>{this.props.url}</a>
24-
</Subtitle>
22+
<Subtitle>Contributions: {this.props.contributions}</Subtitle>
2523
</Intro>
2624
</Profile>
2725
);
@@ -95,6 +93,7 @@ export default class Contributors extends React.Component {
9593
avatar_url={contributor.avatar_url}
9694
name={contributor.login}
9795
url={contributor.html_url}
96+
contributions={contributor.contributions}
9897
/>
9998
);
10099
})

0 commit comments

Comments
 (0)