mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
site: target should be _blank
This commit is contained in:
parent
cc305209c0
commit
36df1c5f83
@ -6,7 +6,7 @@ const branchUrl = 'https://github.com/ant-design/ant-design/edit/master/';
|
||||
export default function EditButton({ title, filename }) {
|
||||
return (
|
||||
<Tooltip title={title}>
|
||||
<a className="edit-button" href={`${branchUrl}${filename}`}>
|
||||
<a className="edit-button" href={`${branchUrl}${filename}`} target="_blank">
|
||||
<Icon type="edit" />
|
||||
</a>
|
||||
</Tooltip>
|
||||
|
@ -196,7 +196,12 @@ export default class Header extends React.Component {
|
||||
</Link>
|
||||
</Menu.Item>
|
||||
<Menu.Item key="pro">
|
||||
<a href="http://pro.ant.design" className="header-link">
|
||||
<a
|
||||
href="http://pro.ant.design"
|
||||
className="header-link"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<FormattedMessage id="app.header.menu.pro" />
|
||||
<span style={{ display: 'inline-block', position: 'relative', top: -2, width: 18 }}>
|
||||
<Badge dot />
|
||||
|
Loading…
Reference in New Issue
Block a user