File tree Expand file tree Collapse file tree 3 files changed +35
-59
lines changed Expand file tree Collapse file tree 3 files changed +35
-59
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments