Fixed delete from mass editor

This commit is contained in:
Qstick
2020-10-22 14:56:21 -04:00
parent dd5b35e590
commit 191d06deca
24 changed files with 244 additions and 282 deletions

View File

@@ -0,0 +1,40 @@
import PropTypes from 'prop-types';
import React from 'react';
import SpinnerIcon from 'Components/SpinnerIcon';
import { icons } from 'Helpers/Props';
import styles from './IndexerEditorFooterLabel.css';
function IndexerEditorFooterLabel(props) {
const {
className,
label,
isSaving
} = props;
return (
<div className={className}>
{label}
{
isSaving &&
<SpinnerIcon
className={styles.savingIcon}
name={icons.SPINNER}
isSpinning={true}
/>
}
</div>
);
}
IndexerEditorFooterLabel.propTypes = {
className: PropTypes.string.isRequired,
label: PropTypes.string.isRequired,
isSaving: PropTypes.bool.isRequired
};
IndexerEditorFooterLabel.defaultProps = {
className: styles.label
};
export default IndexerEditorFooterLabel;