diff --git a/src/forge/Component/Contributors.jsx b/src/forge/Component/Contributors.jsx index d64e0d42..7215c735 100644 --- a/src/forge/Component/Contributors.jsx +++ b/src/forge/Component/Contributors.jsx @@ -1,9 +1,30 @@ -import React from 'react'; +import React, { useEffect, useState } from 'react'; import { AlignCenter , FlexAJ } from '../Component/layout'; import { Link } from 'react-router-dom'; +import { Dropdown , Spin } from 'antd'; import { getImageUrl } from 'educoder'; +import Axios from 'axios'; function Contributors({contributors,owner,projectsId}){ + + // function menuFunc(login){ + // let data = undefined; + // const url = `/users/${login}.json`; + // Axios.get(url).then(result=>{ + // if(result && result.data){ + // data = result.data; + // } + // }).catch(error=>{}) + + // if(data){ + // return( + //
111
+ // ) + // }else{ + // return + // } + // } + return(
@@ -15,7 +36,9 @@ function Contributors({contributors,owner,projectsId}){ contributors && contributors.total_count > 0 ? contributors.list.map((item,key)=>{ return( - + // menuFunc(item.login)}> + + // ) }) :"" diff --git a/src/forge/comments/comments.js b/src/forge/comments/comments.js index 8b9f6c58..93925da6 100644 --- a/src/forge/comments/comments.js +++ b/src/forge/comments/comments.js @@ -310,7 +310,7 @@ class comments extends Component {