mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-12 12:54:48 +08:00
opti: 修改收藏按钮点击区域
This commit is contained in:
parent
55b2e487cb
commit
c2a4b3b51a
@ -76,9 +76,9 @@ class ProjectCard extends Component {
|
|||||||
<Icon type="area-chart" className="ui-logo" />
|
<Icon type="area-chart" className="ui-logo" />
|
||||||
<h4 className="ui-title">{projectData.name || projectData.projectname}</h4>
|
<h4 className="ui-title">{projectData.name || projectData.projectname}</h4>
|
||||||
</Card>
|
</Card>
|
||||||
<div className="card-btns">
|
<div className="card-btns" onClick={projectData.follow || inFollowPage ? this.del : this.add}>
|
||||||
<Tooltip placement="rightTop" title={projectData.follow || inFollowPage ? '取消关注' : '添加关注'}>
|
<Tooltip placement="rightTop" title={projectData.follow || inFollowPage ? '取消关注' : '添加关注'}>
|
||||||
<Icon type={projectData.follow || inFollowPage ? 'star' : 'star-o'} className="icon" onClick={projectData.follow || inFollowPage ? this.del : this.add}/>
|
<Icon type={projectData.follow || inFollowPage ? 'star' : 'star-o'} className="icon"/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user