From 52dc63362b6f3137725cfab0f1f07de5b69e032e Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Thu, 22 Apr 2021 10:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E8=AF=84=E8=AE=BA=E8=80=85?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Component/Contributors.jsx | 27 +++++++++++++++++++++++++-- src/forge/comments/comments.js | 2 +- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/forge/Component/Contributors.jsx b/src/forge/Component/Contributors.jsx index d64e0d42a..7215c735a 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 8b9f6c584..93925da65 100644 --- a/src/forge/comments/comments.js +++ b/src/forge/comments/comments.js @@ -310,7 +310,7 @@ class comments extends Component {