Added href attribute to <use> tags with deprecated xlinkHref attribute.

This commit is contained in:
Austin
2017-07-19 20:16:53 -05:00
parent 8775c63fb4
commit 73f89fc2fd
5 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ export default class AuthorizeBtn extends React.Component {
<button className={isAuthorized ? "btn authorize locked" : "btn authorize unlocked"} onClick={ this.onClick }>
<span>Authorize</span>
<svg width="20" height="20">
<use xlinkHref={ isAuthorized ? "#locked" : "#unlocked" } />
<use href={ isAuthorized ? "#locked" : "#unlocked" } xlinkHref={ isAuthorized ? "#locked" : "#unlocked" } />
</svg>
</button>
{ showPopup && <AuthorizationPopup /> }