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

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

@ -49,7 +49,7 @@ class Settings extends React.Component {
activeTabHeight: '0', activeTabHeight: '0',
appSettings: {}, appSettings: {},
tabElId: null, tabElId: null,
cliCmdString: null, cliCmdString: '',
cliCoin: null, cliCoin: null,
cliResponse: null, cliResponse: null,
exportWifKeysRaw: false, 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' : '') } className={ 'panel-collapse collapse' + (this.state.activeTab === 4 ? ' in' : '') }
style={{ height: this.state.activeTab === 4 ? `${this.state.activeTabHeight}px` : '0' }}> style={{ height: this.state.activeTab === 4 ? `${this.state.activeTabHeight}px` : '0' }}>
<div className="panel-body"> <div className="panel-body">
<p> <div>
<div className="padding-bottom-20">{ this.renderLB('INDEX.ONLY_ACTIVE_WIF_KEYS') }</div> <div className="padding-bottom-20">{ this.renderLB('INDEX.ONLY_ACTIVE_WIF_KEYS') }</div>
<div className="padding-bottom-20"> <div className="padding-bottom-20">
<i>{ this.renderLB('SETTINGS.EXPORT_KEYS_NOTE') }</i> <i>{ this.renderLB('SETTINGS.EXPORT_KEYS_NOTE') }</i>
@ -346,7 +346,7 @@ export const SettingsRender = function() {
<strong> <strong>
<i>{ translate('INDEX.PLEASE_KEEP_KEYS_SAFE') }</i> <i>{ translate('INDEX.PLEASE_KEEP_KEYS_SAFE') }</i>
</strong> </strong>
</p> </div>
<div className="col-sm-12"></div> <div className="col-sm-12"></div>
<form <form
className="wifkeys-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>'); const _translationComponents = translate(_translationID).split('<br>');
return _translationComponents.map((_translation) => return _translationComponents.map((_translation) =>
<span> <span key={ `translate-${Math.random(0, 9) * 10}` }>
{_translation} {_translation}
<br /> <br />
</span> </span>

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

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