MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/BidListMessages/RemoveSuccess.jsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import PropTypes from 'prop-types';
import InteractiveElement from '../InteractiveElement';
import { POSITION_DETAILS } from '../../Constants/PropTypes';

const RemoveSuccess = ({ pos, onToggle }) => (
  <span>
    {pos.title} ({pos.position_number}) has been successfully removed from Bid List.&nbsp;
    <InteractiveElement
      type="a"
      onClick={onToggle}
    >
        Undo
    </InteractiveElement>.
  </span>
);

RemoveSuccess.propTypes = {
  pos: POSITION_DETAILS.isRequired,
  onToggle: PropTypes.func.isRequired,
};

export default RemoveSuccess;