Skip to content
Permalink
Browse files

[DDW-684] Improve method name

  • Loading branch information...
nikolaglumac committed Jul 12, 2019
1 parent b6be580 commit 0035e1196b8e87c9e99ad86155aa8775bc568afd
Showing with 13 additions and 11 deletions.
  1. +13 −11 source/renderer/app/components/status/DaedalusDiagnostics.js
@@ -709,15 +709,15 @@ export default class DaedalusDiagnostics extends Component<Props, State> {
</tr>
<tr>
<th>{intl.formatMessage(messages.connected)}:</th>
<td className={this.getClass(isConnected)}>
<td className={this.getClassName(isConnected)}>
{isConnected
? intl.formatMessage(messages.statusOn)
: intl.formatMessage(messages.statusOff)}
</td>
</tr>
<tr>
<th>{intl.formatMessage(messages.synced)}:</th>
<td className={this.getClass(isSynced)}>
<td className={this.getClassName(isSynced)}>
{isSynced
? intl.formatMessage(messages.statusOn)
: intl.formatMessage(messages.statusOff)}
@@ -779,15 +779,15 @@ export default class DaedalusDiagnostics extends Component<Props, State> {
</tr>
<tr>
<th>{intl.formatMessage(messages.systemTimeCorrect)}:</th>
<td className={this.getClass(isSystemTimeCorrect)}>
<td className={this.getClassName(isSystemTimeCorrect)}>
{isSystemTimeCorrect
? intl.formatMessage(messages.statusOn)
: intl.formatMessage(messages.statusOff)}
</td>
</tr>
<tr>
<th>{intl.formatMessage(messages.systemTimeIgnored)}:</th>
<td className={this.getClass(!isSystemTimeIgnored)}>
<td className={this.getClassName(!isSystemTimeIgnored)}>
{isSystemTimeIgnored
? intl.formatMessage(messages.statusOn)
: intl.formatMessage(messages.statusOff)}
@@ -797,7 +797,9 @@ export default class DaedalusDiagnostics extends Component<Props, State> {
<th>
{intl.formatMessage(messages.systemTimeInTolerationMode)}:
</th>
<td className={this.getClass(!isSystemTimeInTolerationMode)}>
<td
className={this.getClassName(!isSystemTimeInTolerationMode)}
>
{isSystemTimeInTolerationMode
? intl.formatMessage(messages.statusOn)
: intl.formatMessage(messages.statusOff)}
@@ -861,39 +863,39 @@ export default class DaedalusDiagnostics extends Component<Props, State> {
</tr>
<tr>
<th>{intl.formatMessage(messages.cardanoNodeResponding)}:</th>
<td className={this.getClass(isNodeResponding)}>
<td className={this.getClassName(isNodeResponding)}>
{isNodeResponding
? intl.formatMessage(messages.statusOn)
: intl.formatMessage(messages.statusOff)}
</td>
</tr>
<tr>
<th>{intl.formatMessage(messages.cardanoNodeSubscribed)}:</th>
<td className={this.getClass(isNodeSubscribed)}>
<td className={this.getClassName(isNodeSubscribed)}>
{isNodeSubscribed
? intl.formatMessage(messages.statusOn)
: intl.formatMessage(messages.statusOff)}
</td>
</tr>
<tr>
<th>{intl.formatMessage(messages.cardanoNodeTimeCorrect)}:</th>
<td className={this.getClass(isNodeTimeCorrect)}>
<td className={this.getClassName(isNodeTimeCorrect)}>
{isNodeTimeCorrect
? intl.formatMessage(messages.statusOn)
: intl.formatMessage(messages.statusOff)}
</td>
</tr>
<tr>
<th>{intl.formatMessage(messages.cardanoNodeSyncing)}:</th>
<td className={this.getClass(isNodeSyncing)}>
<td className={this.getClassName(isNodeSyncing)}>
{isNodeSyncing
? intl.formatMessage(messages.statusOn)
: intl.formatMessage(messages.statusOff)}
</td>
</tr>
<tr>
<th>{intl.formatMessage(messages.cardanoNodeInSync)}:</th>
<td className={this.getClass(isNodeInSync)}>
<td className={this.getClassName(isNodeInSync)}>
{isNodeInSync
? intl.formatMessage(messages.statusOn)
: intl.formatMessage(messages.statusOff)}
@@ -966,7 +968,7 @@ export default class DaedalusDiagnostics extends Component<Props, State> {
this.restoreDialogCloseOnEscKey();
};

getClass = (isTrue: boolean) =>
getClassName = (isTrue: boolean) =>
classNames([isTrue ? styles.green : styles.red]);

syncingTimer = () => {

0 comments on commit 0035e11

Please sign in to comment.
You can’t perform that action at this time.