diff --git a/src/forge/Component/Cards.jsx b/src/forge/Component/Cards.jsx index 498b375c..f9a3d52e 100644 --- a/src/forge/Component/Cards.jsx +++ b/src/forge/Component/Cards.jsx @@ -3,7 +3,7 @@ import { getImageUrl } from 'educoder'; import { Link } from 'react-router-dom'; import './Component.scss'; -function Cards({img , title, desc , rightBtn , src}){ +function Cards({img , title, desc , rightBtn , src , bottomInfos}){ return(
{img &&
} @@ -15,6 +15,7 @@ function Cards({img , title, desc , rightBtn , src}){
{desc}
+ {bottomInfos}
) diff --git a/src/forge/Team/Sub/Detail.jsx b/src/forge/Team/Sub/Detail.jsx index bba0b7de..f2df0dbd 100644 --- a/src/forge/Team/Sub/Detail.jsx +++ b/src/forge/Team/Sub/Detail.jsx @@ -83,10 +83,9 @@ function Detail(props){ img={detail.avatar_url} rightBtn={ - {flag && !buttonflag && detail.is_admin ? - 设置 - - :""} + {flag && !buttonflag && detail.is_admin ? + 设置 + :""} {buttonflag && 组织成员{detail.num_users && {detail.num_users}} @@ -95,6 +94,12 @@ function Detail(props){ } } + bottomInfos={ + !buttonflag &&
+ {detail.location} + {detail.website} +
+ } /> }