Skip to content

Commit e307e01

Browse files
committed
code clenup
1 parent 0ba7863 commit e307e01

File tree

3 files changed

+35
-59
lines changed

3 files changed

+35
-59
lines changed

src/App.css

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/App.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/Components/RepoList.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import React from 'react'
2+
import Repo from './Repo'
3+
4+
5+
const RepoList = ({ repo }) => {
6+
7+
return (
8+
<div>
9+
{
10+
repo.map((item, index) => {
11+
12+
return (
13+
<Repo
14+
key = { repo[index].id }
15+
avatar_url = { repo[index].owner.avatar_url }
16+
owner = { repo[index].owner.login }
17+
name = { repo[index].name }
18+
html_url = { repo[index].html_url }
19+
description = { repo[index].description }
20+
stargazers_count = { repo[index].stargazers_count }
21+
open_issues_count = { repo[index].open_issues_count }
22+
// issues_url = { repo[index].issues_url }
23+
// stargazers_url = { repo[index].stargazers_url }
24+
created_at = { repo[index].created_at }
25+
/>
26+
);
27+
})
28+
}
29+
</div>
30+
);
31+
}
32+
33+
34+
35+
export default RepoList

0 commit comments

Comments
 (0)