Sha256: 5a32236f05169652a57866113ff3d4fc980b91bba593b6d0fe5d0a88dd7270bf

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

Stored size: 847 Bytes

Contents

import React from 'react';
import { addGlobalFill } from 'foremanReact/components/common/Fill/GlobalFill';
import InventoryAutoUploadSwitcher from './ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload';
import NewHostDetailsTab from './InsightsHostDetailsTab/NewHostDetailsTab';

const fills = [
  {
    slot: 'katello-manage-manifest-form',
    name: 'InventoryAutoUpload',
    component: () => <InventoryAutoUploadSwitcher />,
    weight: 50,
  },
  {
    slot: 'host-details-page-tabs',
    name: 'Insights',
    component: props => <NewHostDetailsTab {...props} />,
    weight: 700,
  },
];

export const registerFills = () => {
  fills.forEach(({ slot, name, component: Component, weight }, index) =>
    addGlobalFill(
      slot,
      name,
      <Component key={`rh-cloud-fill-${index}`} />,
      weight
    )
  );
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_rh_cloud-5.0.29 webpack/ForemanRhCloudFills.js