forked from Gitlink/forgeplus-react
file types of submodule
This commit is contained in:
parent
932f831879
commit
38b28fce1d
|
|
@ -20,9 +20,6 @@ function CoderDepotCatalogue({item , goToSubRoot , owner , projectsId , platform
|
|||
return value;
|
||||
}
|
||||
|
||||
useEffect(()=>{
|
||||
|
||||
},[])
|
||||
|
||||
return(
|
||||
<li>
|
||||
|
|
@ -31,9 +28,15 @@ function CoderDepotCatalogue({item , goToSubRoot , owner , projectsId , platform
|
|||
(!platform && item.image_type) ?
|
||||
<span><i className={`iconfont ${typeIco[`${item.type}`]} mr8`}></i>{item.name}</span>
|
||||
:
|
||||
<a onClick={()=>goToSubRoot(item.path,item.type,item.name)} className={item.type === "submodule" ? "submoduleStyle":''}>
|
||||
<i className={`iconfont ${typeIco[`${item.type}`]} mr8`}></i>{item.name}
|
||||
</a>
|
||||
(item.type === "submodule" ?
|
||||
<Link to={`/${owner}/${item.name}`}>
|
||||
<i className={`iconfont ${typeIco[`${item.type}`]} mr8`}></i>{item.name}
|
||||
</Link>
|
||||
:
|
||||
<a onClick={()=>goToSubRoot(item.path,item.type,item.name)}>
|
||||
<i className={`iconfont ${typeIco[`${item.type}`]} mr8`}></i>{item.name}
|
||||
</a>
|
||||
)
|
||||
}
|
||||
</span>
|
||||
<span title="init project">
|
||||
|
|
|
|||
Loading…
Reference in New Issue