forked from Gitlink/forgeplus-react
没有数据时tab也不会显示
This commit is contained in:
parent
a2e1b2abd1
commit
43fc24e114
|
@ -3,12 +3,10 @@ import { AlignCenter , FlexAJ } from '../Component/layout';
|
|||
import User from '../Component/User';
|
||||
import { truncateCommitId } from '../common/util';
|
||||
import { getImageUrl } from 'educoder';
|
||||
import Nodata from '../Nodata';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
function Commits({ commits , projectsId , owner }){
|
||||
return(
|
||||
commits && commits.length>0 ?
|
||||
<div className="pb20">
|
||||
{
|
||||
commits.map((item,key)=>{
|
||||
|
@ -32,8 +30,6 @@ function Commits({ commits , projectsId , owner }){
|
|||
})
|
||||
}
|
||||
</div>
|
||||
:
|
||||
<Nodata _html="暂无提交记录~"/>
|
||||
)
|
||||
}
|
||||
export default Commits;
|
|
@ -2,7 +2,6 @@ import React ,{useEffect,useState } from 'react';
|
|||
import { truncateCommitId } from '../common/util';
|
||||
import { AlignCenter , FlexAJ } from '../Component/layout';
|
||||
import { Button } from 'antd';
|
||||
import Nodata from '../Nodata';
|
||||
import './merge.css';
|
||||
|
||||
function Files({data,history,owner,projectsId}){
|
||||
|
@ -24,7 +23,6 @@ function Files({data,history,owner,projectsId}){
|
|||
}
|
||||
|
||||
return(
|
||||
files ?
|
||||
<div>
|
||||
<AlignCenter className="color-grey-9 pb10" style={{borderBottom:"1px solid #eee"}}>
|
||||
<i className="iconfont icon-sanjiaoxing-down mr5"></i>
|
||||
|
@ -83,8 +81,6 @@ function Files({data,history,owner,projectsId}){
|
|||
</div>
|
||||
}
|
||||
</div>
|
||||
:
|
||||
<Nodata _html="暂无文件提交~"/>
|
||||
)
|
||||
}
|
||||
export default Files;
|
Loading…
Reference in New Issue