Sha256: 1f3d3a946a9f3d6f1b3e3cac9674511db1396eb4d9d0881359b125a88aa82b85

Contents?: true

Size: 565 Bytes

Versions: 23

Compression:

Stored size: 565 Bytes

Contents

import React from 'react';

export const Table = () => <div className="table" />;
export const createTableReducer = jest.fn(controller => controller);
export const cellFormatter = cell => cell;
export const deleteActionCellFormatter = cell => cell;
export const sortableColumn = jest.fn();
export const column = (
  property,
  label,
  headFormat,
  cellFormat,
  headProps = {},
  cellProps = {}
) => ({
  property,
  header: {
    label,
    props: headProps,
    formatters: headFormat,
  },
  cell: {
    props: cellProps,
    formatters: cellFormat,
  },
});

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
foreman_webhooks-3.0.0 webpack/__mocks__/foremanReact/components/common/table.js
foreman_webhooks-2.0.0 webpack/__mocks__/foremanReact/components/common/table.js
foreman_webhooks-1.1.0 webpack/__mocks__/foremanReact/components/common/table.js