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