1
1
import React , { Component } from "react" ;
2
-
3
- import PropTypes from "prop-types" ;
4
- // import {Card,Button} from 'react-bootstrap'
5
-
6
- import "./Team.css" ;
7
2
import BoardMembersWrapper from "./BoardMembers" ;
8
3
import CoreContributorsWrapper from "./CoreContributors" ;
9
4
import ScrollToTopBtn from "../../components/ScrollToTopBtn/ScrollToTopBtn.js" ;
10
5
import axios from "axios" ;
11
- import $ from "jquery" ;
6
+ import "./Team.css" ;
7
+
12
8
class Team extends Component {
13
9
constructor ( props ) {
14
10
super ( props ) ;
@@ -17,28 +13,17 @@ class Team extends Component {
17
13
contributors : [ ] ,
18
14
} ;
19
15
}
20
- // var jsonURL = "https://s3.ap-south-1.amazonaws.com/pr-webhook-contributors-json/contributors.json";
21
- // $.getJSON(jsonURL, function(json) {
22
- // $.each(json, function() {
23
- // var contributorDiv = "";
24
- // contributorDiv += '<div class="col-xs-1 col-3xs-12 lawyer-post g-mb-50"><a href=' + this.url + '><img class="img-responsive full-width g-mb-25" src="' + this.image + '" alt=""></a> </div>';
25
- // // contributorDiv += '<p class="g-fs-10 text-uppercase center-align">' + this.name + '</p>';
26
- // // contributorDiv += '<a href=' + this.url + ' class="btn-u btn-u-lg btn-u-red btn-u-upper github-button"><i class="fa fa-github"></i> </a> </div>'
27
- // $('#contributors').append(contributorDiv);
28
- // });
29
- // });
16
+
30
17
componentDidMount ( ) {
31
18
var jsonURL =
32
19
"https://s3.ap-south-1.amazonaws.com/pr-webhook-contributors-json/contributors.json" ;
33
20
axios . get ( jsonURL ) . then ( ( res ) => {
34
21
this . setState ( { contributors : res . data } ) ;
35
- //console.log(this.state);
36
22
} ) ;
37
23
window . scrollTo ( 0 , 0 ) ;
38
24
}
39
25
render ( ) {
40
26
let contributors = this . state . contributors ;
41
- // console.log(contributors)
42
27
var contrilist = contributors . map ( ( contri ) => {
43
28
return (
44
29
< div class = "col-xs-2 lawyer-post g-mb-50 m-4" >
0 commit comments