11import React , { Component } from "react" ;
2-
3- import PropTypes from "prop-types" ;
4- // import {Card,Button} from 'react-bootstrap'
5-
6- import "./Team.css" ;
72import BoardMembersWrapper from "./BoardMembers" ;
83import CoreContributorsWrapper from "./CoreContributors" ;
94import ScrollToTopBtn from "../../components/ScrollToTopBtn/ScrollToTopBtn.js" ;
105import axios from "axios" ;
11- import $ from "jquery" ;
6+ import "./Team.css" ;
7+
128class Team extends Component {
139 constructor ( props ) {
1410 super ( props ) ;
@@ -17,28 +13,17 @@ class Team extends Component {
1713 contributors : [ ] ,
1814 } ;
1915 }
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+
3017 componentDidMount ( ) {
3118 var jsonURL =
3219 "https://s3.ap-south-1.amazonaws.com/pr-webhook-contributors-json/contributors.json" ;
3320 axios . get ( jsonURL ) . then ( ( res ) => {
3421 this . setState ( { contributors : res . data } ) ;
35- //console.log(this.state);
3622 } ) ;
3723 window . scrollTo ( 0 , 0 ) ;
3824 }
3925 render ( ) {
4026 let contributors = this . state . contributors ;
41- // console.log(contributors)
4227 var contrilist = contributors . map ( ( contri ) => {
4328 return (
4429 < div class = "col-xs-2 lawyer-post g-mb-50 m-4" >
0 commit comments