File tree 1 file changed +44
-39
lines changed
application/src/components/Box
1 file changed +44
-39
lines changed Original file line number Diff line number Diff line change @@ -17,45 +17,50 @@ class Box extends React.Component {
17
17
18
18
return (
19
19
< div className = { "response" } >
20
- {
21
- array . map ( ( repo ) => (
22
- < div className = { "row" } >
23
- < h3 >
24
- { repo . full_name }
25
- </ h3 >
26
- < p className = { "row-des" } >
27
- { repo . description }
28
- </ p >
29
- < ul className = { "list" } >
30
- {
31
- repo . topics . map ( ( topic ) => (
32
- < li className = { "list-item" } >
33
- { topic }
34
- </ li >
35
- ) )
36
- }
37
- </ ul >
38
- < div className = { "row-opt" } >
39
- < small >
40
- { repo . language }
41
- </ small >
42
- < small >
43
- Stars: { repo . stargazers_count }
44
- </ small >
45
- < small >
46
- < a
47
- className = { "row-link" }
48
- href = { repo . html_url }
49
- target = { "_blank" }
50
- rel = { "noreferrer" }
51
- >
52
- Repo link
53
- </ a >
54
- </ small >
55
- </ div >
56
- </ div >
57
- ) )
58
- }
20
+ {
21
+ this . props . userInformation !== "No value" ? (
22
+ array . map ( ( repo ) => (
23
+ < div key = { repo . id } className = { "row" } >
24
+ < h3 >
25
+ { repo . full_name }
26
+ </ h3 >
27
+ < p className = { "row-des" } >
28
+ { repo . description }
29
+ </ p >
30
+ < ul className = { "list" } >
31
+ {
32
+ repo . topics . map ( ( topic ) => (
33
+ < li className = { "list-item" } >
34
+ { topic }
35
+ </ li >
36
+ ) )
37
+ }
38
+ </ ul >
39
+ < div className = { "row-opt" } >
40
+ < small >
41
+ { repo . language }
42
+ </ small >
43
+ < small >
44
+ Stars: { repo . stargazers_count }
45
+ </ small >
46
+ < small >
47
+ < a
48
+ className = { "row-link" }
49
+ href = { repo . html_url }
50
+ target = { "_blank" }
51
+ rel = { "noreferrer" }
52
+ >
53
+ Repo link
54
+ </ a >
55
+ </ small >
56
+ </ div >
57
+ </ div >
58
+ ) )
59
+ ) : (
60
+ < pre >
61
+ No value
62
+ </ pre >
63
+ ) }
59
64
</ div >
60
65
)
61
66
}
You can’t perform that action at this time.
0 commit comments