Sha256: a77b1ab17294b01049f33c8e509f0f22ca62df846a74ec0c75f643bfc13eb094

Contents?: true

Size: 395 Bytes

Versions: 5

Compression:

Stored size: 395 Bytes

Contents

import React from 'react';

import RelativeDateTime from 'foremanReact/components/common/dates/RelativeDateTime';

import ReportToShowCell from '../ReportToShowCell';

const reportToShowFormatter = () => (value, { rowData: { canEdit, id } }) => (
  <ReportToShowCell active={canEdit} id={id}>
    <RelativeDateTime date={value} />
  </ReportToShowCell>
);

export default reportToShowFormatter;

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_host_reports-1.0.2 webpack/src/Router/HostReports/IndexPage/Components/HostReportsTable/Components/Formatters/reportToShowFormatter.js
foreman_host_reports-1.0.1 webpack/src/Router/HostReports/IndexPage/Components/HostReportsTable/Components/Formatters/reportToShowFormatter.js
foreman_host_reports-1.0.0 webpack/src/Router/HostReports/IndexPage/Components/HostReportsTable/Components/Formatters/reportToShowFormatter.js
foreman_host_reports-0.0.4 webpack/src/Router/HostReports/IndexPage/Components/HostReportsTable/Components/Formatters/reportToShowFormatter.js
foreman_host_reports-0.0.3 webpack/src/Router/HostReports/IndexPage/Components/HostReportsTable/Components/Formatters/reportToShowFormatter.js