Skip to content

Commit

Permalink
Changes for adding react router support
Browse files Browse the repository at this point in the history
  • Loading branch information
COMMONAPP authored and COMMONAPP committed Jul 5, 2015
1 parent 9ec8288 commit b33f95f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react": "^0.13.2",
"react-document-title": "^1.0.0",
"react-pure-render": "^1.0.1",
"react-router": "^1.0.0-beta2",
"react-router": "^1.0.0-beta3",
"selectn": "^0.9.6",
"underscore": "^1.8.2",
"whatwg-fetch": "^0.7.0"
Expand Down
6 changes: 3 additions & 3 deletions scripts/components/Repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ export default class Repo {
return (
<div className='Repo'>
<h3>
<Link to='repo' params={{ login: owner.login, name: repo.name }}>
<Link to={`/${owner.login}/${repo.name}`}>
{repo.name}
</Link>
{' by '}
<Link to='user' params={{ login: owner.login }}>
<Link to={owner.login}>
{owner.login}
</Link>
</h3>
<p>{repo.description}</p>
</div>
);
}
}
}
2 changes: 1 addition & 1 deletion scripts/components/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class User {

return (
<div className='User'>
<Link to='user' params={{ login: user.login }}>
<Link to={`/${user.login}`}>
<img src={user.avatarUrl} width='72' height='72' />
<h3>
{user.login} {user.name && <span>({user.name})</span>}
Expand Down

0 comments on commit b33f95f

Please sign in to comment.