pbca26
7 years ago
24 changed files with 21 additions and 81 deletions
@ -1,20 +0,0 @@ |
|||
import React from 'react'; |
|||
import WalletsNativeAlertRender from './walletsNativeAlert.render'; |
|||
|
|||
class WalletsNativeAlert extends React.Component { |
|||
hasNoProgress() { |
|||
return this.props && |
|||
this.props.Dashboard && |
|||
!this.props.Dashboard.progress; |
|||
} |
|||
|
|||
render() { |
|||
if (this.hasNoProgress()) { |
|||
return WalletsNativeAlertRender.call(this); |
|||
} |
|||
|
|||
return null; |
|||
} |
|||
} |
|||
|
|||
export default WalletsNativeAlert; |
@ -1,19 +0,0 @@ |
|||
import React from 'react'; |
|||
import { translate } from '../../../translate/translate'; |
|||
|
|||
const WalletsNativeAlertRender = function() { |
|||
return ( |
|||
<div className="alert alert-danger alert-dismissible"> |
|||
<h4>{ translate('INDEX.OOPS_ERROR') }</h4> |
|||
<p> |
|||
<span>{ translate('INDEX.OOPS_ERROR_DESC') }</span> |
|||
<code>server=1</code><br/> |
|||
<code>rpcport=</code><br/> |
|||
<code>rpcuser=</code><br/> |
|||
<code>rpcpassword=</code> |
|||
</p> |
|||
</div> |
|||
); |
|||
}; |
|||
|
|||
export default WalletsNativeAlertRender; |
Loading…
Reference in new issue