diff --git a/src/forge/Component/MemberCards.jsx b/src/forge/Component/MemberCards.jsx index 78dd78d0..14299fab 100644 --- a/src/forge/Component/MemberCards.jsx +++ b/src/forge/Component/MemberCards.jsx @@ -1,6 +1,8 @@ import React from 'react'; import './Component.scss'; +import { Button } from 'antd'; import styled from 'styled-components'; +import FocusButton from "../UsersList/focus_button"; const Img = styled.img`{ border-radius:50%; @@ -56,17 +58,18 @@ const Div = styled.div`{ align-items: center; border:1px solid #eee; }` -export default (({img,name,time, focusStatus})=>{ - return( +export default (({ img, name, time, focusStatus, is_current_user, login }) => { + return (
- +
{name} { - focusStatus ? - 已关注 : - 关注 + is_current_user ? + + : + }
diff --git a/src/forge/Component/Search.jsx b/src/forge/Component/Search.jsx index ec27ac28..19111ec2 100644 --- a/src/forge/Component/Search.jsx +++ b/src/forge/Component/Search.jsx @@ -2,10 +2,9 @@ import React from "react"; import { Input } from "antd"; const { Search } = Input; -export default ({ placeholder , onSearch , value , onChange }) => { +export default ({ placeholder , onSearch , onChange }) => { return ( { return (