|
|
|
@ -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>
|
|
|
|
|
);
|
|
|
|
|