Sha256: 110916561319c34faf03f6e03c88b341239383e1625bea4a1092e7fc62fb9335
Contents?: true
Size: 736 Bytes
Versions: 126
Compression:
Stored size: 736 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Icon, Grid } from 'patternfly-react'; import { FormattedRelative } from 'react-intl'; import { translate as __ } from 'foremanReact/common/I18n'; import './scheduledRun.scss'; const ScheduledRun = ({ date, autoUploadEnabled }) => autoUploadEnabled && date ? ( <Grid.Col sm={12} className="scheduled_run"> <p> <Icon name="calendar" /> {__('Next run: ')} <FormattedRelative value={date} />. </p> </Grid.Col> ) : null; ScheduledRun.propTypes = { date: PropTypes.string, autoUploadEnabled: PropTypes.bool, }; ScheduledRun.defaultProps = { date: null, autoUploadEnabled: true, }; export default ScheduledRun;
Version data entries
126 entries across 126 versions & 1 rubygems