Browse Source

fix eslint errors

pull/20307/head
afc163 5 years ago
parent
commit
cc8ab225cc
  1. 8
      site/theme/template/Home/Page2.jsx
  2. 2
      site/theme/template/Home/Page3.jsx

8
site/theme/template/Home/Page2.jsx

@ -122,10 +122,10 @@ export default function Page2({ isMobile, locale }) {
<Link to={utils.getLocalizedPathname('/docs/react/introduce', isZhCN)}>
Ant Design of React <Icon type="right" />
</Link>
<a href="https://ng.ant.design/" target="_blank">
<a href="https://ng.ant.design/" target="_blank" rel="noopener noreferrer">
Ant Design of Angular <Icon type="right" />
</a>
<a href="https://vue.ant.design/" target="_blank">
<a href="https://vue.ant.design/" target="_blank" rel="noopener noreferrer">
Ant Design of Vue <Icon type="right" />
</a>
</div>
@ -137,11 +137,11 @@ export default function Page2({ isMobile, locale }) {
const mobileContent = (
<div className="components-button-wrapper">
<p key="p">{item.slogan}</p>
<a className="more-mobile-react" href="https://mobile.ant.design" target="_blank">
<a className="more-mobile-react" href="https://mobile.ant.design" target="_blank" rel="noopener noreferrer">
<FormattedMessage id="app.home.more-mobile-react" />
<Icon type="right" />
</a>
<a className="more-mobile-angular" href="http://ng.mobile.ant.design" target="_blank">
<a className="more-mobile-angular" href="http://ng.mobile.ant.design" target="_blank" rel="noopener noreferrer">
<FormattedMessage id="app.home.more-mobile-angular" />
<Icon type="right" />
</a>

2
site/theme/template/Home/Page3.jsx

@ -108,7 +108,7 @@ export default function Page3({ locale }) {
{item.to ? (
<Link to={utils.getLocalizedPathname(item.to, isZhCN)}>{child}</Link>
) : (
<a href={item.link} target="_blank">
<a href={item.link} target="_blank" rel="noopener noreferrer">
{child}
</a>
)}

Loading…
Cancel
Save