Sha256: 1cf525fd3978c457e017605db558984a689ec9c568a11d65f1dac92890766842
Contents?: true
Size: 587 Bytes
Versions: 8
Compression:
Stored size: 587 Bytes
Contents
import React from 'react'; import { translate as __ } from 'foremanReact/common/I18n'; import TasksDonutCard from '../TasksDonutCard/TasksDonutCard'; const PausedTasksCard = ({ ...props }) => ( <TasksDonutCard title={__('Paused')} wantedQueryState="paused" {...props} /> ); const filterUnwantedFields = obj => { const { title, wantedQueryState, ...newObj } = obj; return newObj; }; PausedTasksCard.propTypes = filterUnwantedFields(TasksDonutCard.propTypes); PausedTasksCard.defaultProps = filterUnwantedFields( TasksDonutCard.defaultProps ); export default PausedTasksCard;
Version data entries
8 entries across 8 versions & 1 rubygems