Browse Source

elections modal fixes

v0.25
pbca26 7 years ago
parent
commit
681273f7d5
  1. 5
      react/src/components/dashboard/notaryElectionsModal/notaryElectionsModal.js
  2. 2
      react/src/components/dashboard/notaryElectionsModal/notaryElectionsModal.scss

5
react/src/components/dashboard/notaryElectionsModal/notaryElectionsModal.js

@ -535,7 +535,7 @@ class NotaryElectionsModal extends React.Component {
<i className="fa fa-power-off margin-right-5"></i>Logout <i className="fa fa-power-off margin-right-5"></i>Logout
</button> </button>
} }
<div className="elections-user-type"> {/*<div className="elections-user-type">
<a <a
className={ this.state.userType === 'voter' ? 'active' : '' } className={ this.state.userType === 'voter' ? 'active' : '' }
onClick={ () => this.setUserType('voter') }><i className="fa fa-file margin-right-10"></i>I'm a voter</a> onClick={ () => this.setUserType('voter') }><i className="fa fa-file margin-right-10"></i>I'm a voter</a>
@ -543,7 +543,7 @@ class NotaryElectionsModal extends React.Component {
<a <a
className={ this.state.userType === 'candidate' ? 'active' : '' } className={ this.state.userType === 'candidate' ? 'active' : '' }
onClick={ () => this.setUserType('candidate') }><i className="fa fa-user-o margin-right-10"></i>I'm a candidate</a> onClick={ () => this.setUserType('candidate') }><i className="fa fa-user-o margin-right-10"></i>I'm a candidate</a>
</div> </div>*/}
{ !this.state.isAuth && { !this.state.isAuth &&
<div className="elections-login"> <div className="elections-login">
<label <label
@ -633,6 +633,7 @@ class NotaryElectionsModal extends React.Component {
} }
{ this.state.isAuth && { this.state.isAuth &&
this.state.userType === 'voter' && this.state.userType === 'voter' &&
this.state.balance > 0 &&
<div className={ 'elections-user-type' + (this.state.voteType === 'single' ? ' margin-bottom-30' : '') }> <div className={ 'elections-user-type' + (this.state.voteType === 'single' ? ' margin-bottom-30' : '') }>
<a <a
className={ this.state.voteType === 'multi' ? 'active' : '' } className={ this.state.voteType === 'multi' ? 'active' : '' }

2
react/src/components/dashboard/notaryElectionsModal/notaryElectionsModal.scss

@ -53,7 +53,7 @@
} }
.elections-login { .elections-login {
margin-top: 15px; margin-top: 35px;
} }
.elections-login-btn { .elections-login-btn {

Loading…
Cancel
Save