Frontend Cleanup

This commit is contained in:
Qstick
2021-02-07 23:13:23 -05:00
parent f55bf4fc6d
commit 5e7ef18212
4 changed files with 10 additions and 15 deletions

View File

@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import Icon from 'Components/Icon';
import VirtualTableRowCell from 'Components/Table/Cells/TableRowCell';
import { icons } from 'Helpers/Props';
import { icons, kinds } from 'Helpers/Props';
import styles from './IndexerStatusCell.css';
function IndexerStatusCell(props) {
@@ -19,12 +19,12 @@ function IndexerStatusCell(props) {
{...otherProps}
>
{
!enabled &&
<Icon
className={styles.statusIcon}
name={icons.BLACKLIST}
title={enabled ? 'Indexer is Enabled' : 'Indexer is Disabled'}
/>
<Icon
className={styles.statusIcon}
kind={enabled ? kinds.SUCCESS : kinds.DEFAULT}
name={enabled ? icons.CHECK : icons.BLACKLIST}
title={enabled ? 'Indexer is Enabled' : 'Indexer is Disabled'}
/>
}
</Component>
);