Browse Source

fixed react warnings

all-modes
pbca26 8 years ago
parent
commit
3640a807ef
  1. 9
      react/src/actions/actionCreators.js
  2. 2
      react/src/components/dashboard/settings/settings.js
  3. 4
      react/src/components/dashboard/settings/settings.render.js
  4. 2
      react/src/components/dashboard/walletsBalance/walletsBalance.js
  5. 25
      react/src/components/login/login.scss

9
react/src/actions/actionCreators.js

@ -1,7 +1,6 @@
import 'whatwg-fetch';
import 'bluebird';
import _config from '../config';
import { translate } from '../translate/translate';
import {
GET_ACTIVE_COINS,
@ -68,14 +67,6 @@ export * from './actions/iguanaHelpers';
export * from './actions/cli';
export * from './actions/update';
export let Config;
try {
Config = window.require('electron').remote.getCurrentWindow().appConfig;
} catch (e) {
Config = _config;
}
export function changeActiveAddress(address) {
return {
type: DASHBOARD_ACTIVE_ADDRESS,

2
react/src/components/dashboard/settings/settings.js

@ -49,7 +49,7 @@ class Settings extends React.Component {
activeTabHeight: '0',
appSettings: {},
tabElId: null,
cliCmdString: null,
cliCmdString: '',
cliCoin: null,
cliResponse: null,
exportWifKeysRaw: false,

4
react/src/components/dashboard/settings/settings.render.js

@ -338,7 +338,7 @@ export const SettingsRender = function() {
className={ 'panel-collapse collapse' + (this.state.activeTab === 4 ? ' in' : '') }
style={{ height: this.state.activeTab === 4 ? `${this.state.activeTabHeight}px` : '0' }}>
<div className="panel-body">
<p>
<div>
<div className="padding-bottom-20">{ this.renderLB('INDEX.ONLY_ACTIVE_WIF_KEYS') }</div>
<div className="padding-bottom-20">
<i>{ this.renderLB('SETTINGS.EXPORT_KEYS_NOTE') }</i>
@ -346,7 +346,7 @@ export const SettingsRender = function() {
<strong>
<i>{ translate('INDEX.PLEASE_KEEP_KEYS_SAFE') }</i>
</strong>
</p>
</div>
<div className="col-sm-12"></div>
<form
className="wifkeys-form"

2
react/src/components/dashboard/walletsBalance/walletsBalance.js

@ -95,7 +95,7 @@ class WalletsBalance extends React.Component {
const _translationComponents = translate(_translationID).split('<br>');
return _translationComponents.map((_translation) =>
<span>
<span key={ `translate-${Math.random(0, 9) * 10}` }>
{_translation}
<br />
</span>

25
react/src/components/login/login.scss

@ -16,6 +16,17 @@
}
button {
&.copy-floating-label {
position: absolute;
font-weight: 500;
font-size: 14px;
top: -22px;
right: 0;
background-color: #757575;
border: 0;
cursor: pointer;
z-index: 1000;
}
&.swal2-confirm-container {
background-color: rgb(48, 133, 214);
border-left-color: rgb(48, 133, 214);
@ -111,14 +122,8 @@ input[type="password"] {
margin-right: auto;
}
button.copy-floating-label {
position: absolute;
font-weight: 500;
font-size: 11.2px;
top: -11px;
right: 0;
background-color: #757575;
border: 0;
cursor: pointer;
z-index: 1000;
.register-form {
.floating-label {
font-size: 13px;
}
}
Loading…
Cancel
Save