Sha256: 743aab2e30c7adcb0f079f0aa46ad0ed1dd324cf5a46b29216d84d32076d2468

Contents?: true

Size: 318 Bytes

Versions: 3

Compression:

Stored size: 318 Bytes

Contents

import React from 'react';

import StatusCell from '../StatusCell';

const statusFormatter = () => (_, { rowData }) => {
  const statuses = {
    change: rowData.change,
    nochange: rowData.nochange,
    failure: rowData.failure,
  };
  return <StatusCell statuses={statuses} />;
};

export default statusFormatter;

Version data entries

3 entries across 3 versions & 1 rubygems

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