This commit is contained in:
Kyle Shockey
2017-04-10 13:50:51 -07:00
parent 1b6da44cb5
commit f2ae188722
6 changed files with 23 additions and 15 deletions

View File

@@ -16,6 +16,10 @@ export default class AuthorizeOperationBtn extends React.Component {
let isAuthorized = authSelectors.isAuthorized(security)
if(isAuthorized === null) {
return null
}
return (
<button className={isAuthorized ? "authorization__btn locked" : "authorization__btn unlocked"} onClick={ this.onClick }>
<svg width="20" height="20">