Sha256: 43b98198802a0994d4857c225368df1b3a7ecc299ec8cb4a0136e1b3f26308c9

Contents?: true

Size: 661 Bytes

Versions: 54

Compression:

Stored size: 661 Bytes

Contents

import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { CloudConnectorButton } from './CloudConnectorButton';
import { configureCloudConnector } from './CloudConnectorActions';
import { selectStatus, selectJobLink } from './CloudConnectorSelectors';

const ConnectedCloudConnectorButton = () => {
  const status = useSelector(selectStatus);
  const jobLink = useSelector(selectJobLink);
  const dispatch = useDispatch();

  return (
    <CloudConnectorButton
      status={status}
      onClick={() => dispatch(configureCloudConnector())}
      jobLink={jobLink}
    />
  );
};

export default ConnectedCloudConnectorButton;

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
foreman_rh_cloud-4.0.32 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-5.0.32 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-4.0.31 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-5.0.31 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-5.0.30 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-4.0.30 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.29 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-4.0.29 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-5.0.29 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.28 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-5.0.28 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-4.0.27 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.26 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-4.0.26 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-4.0.25.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.25 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-4.0.25 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.24.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-4.0.24.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.24 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js