From 7eef81b91a7e5f59b844f1060249ac7fce04c711 Mon Sep 17 00:00:00 2001 From: Sylor-huang Date: Sun, 31 Jan 2021 22:24:46 +0800 Subject: [PATCH] add team codes --- src/forge/Component/MemberCards.jsx | 15 +- src/forge/Component/Search.jsx | 3 +- src/forge/Component/SearchUser.jsx | 2 +- src/forge/Component/layout.jsx | 17 +- src/forge/Team/Group/GroupDetailMember.jsx | 91 +++-- src/forge/Team/Group/GroupDetailProject.jsx | 87 ++++- src/forge/Team/Group/GroupDetails.jsx | 96 ++++-- src/forge/Team/Group/GroupForm.jsx | 208 ++++++++++++ src/forge/Team/Group/GroupNew.jsx | 128 +------ .../Team/Group/Setting/GroupMemberSetting.jsx | 318 +++++++++++++++++- .../Group/Setting/GroupProjectSetting.jsx | 176 +++++++++- src/forge/Team/Group/SettingCommon.jsx | 180 ++-------- 12 files changed, 957 insertions(+), 364 deletions(-) create mode 100644 src/forge/Team/Group/GroupForm.jsx 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 (