forked from Gitlink/forgeplus-react
新建团队
This commit is contained in:
parent
59836f69d0
commit
03cd10f599
|
@ -106,7 +106,7 @@ function List(props){
|
|||
</div>
|
||||
}
|
||||
</div>
|
||||
<Right OIdentifier={OIdentifier} history={props.history}/>
|
||||
<Right admin={organizeDetail && organizeDetail.is_admin} OIdentifier={OIdentifier} history={props.history}/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ const Img = styled.img`{
|
|||
height:45px;
|
||||
margin-right:12px;
|
||||
}`
|
||||
function RightBox({ OIdentifier , history }) {
|
||||
function RightBox({ OIdentifier , history , admin }) {
|
||||
const [ memberData, setMemberData ] = useState(undefined);
|
||||
const [ groupData, setGroupData ] = useState(undefined);
|
||||
|
||||
|
@ -87,7 +87,7 @@ function RightBox({ OIdentifier , history }) {
|
|||
<Box
|
||||
name="组织团队"
|
||||
count={groupData && groupData.total_count}
|
||||
bottom={<Button type={'primary'} onClick={()=>history.push(`/organize/${OIdentifier}/group/new`)}>新建团队</Button>}
|
||||
bottom={admin && <Button type={'primary'} onClick={()=>history.push(`/organize/${OIdentifier}/group/new`)}>新建团队</Button>}
|
||||
url={`/organize/${OIdentifier}/group`}
|
||||
>
|
||||
{
|
||||
|
|
|
@ -12,14 +12,6 @@ const SpanFoot = styled.span`{
|
|||
margin-right:5px;
|
||||
color:#333
|
||||
}`
|
||||
const ALink = styled.a`{
|
||||
border:1px solid #F73030;
|
||||
color:#F73030!important;
|
||||
height:30px;
|
||||
line-height:30px;
|
||||
padding:0px 15px;
|
||||
border-radius:5px;
|
||||
}`
|
||||
const ImgContent = styled.img`{
|
||||
height:44px;
|
||||
width:44px;
|
||||
|
|
Loading…
Reference in New Issue