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.24 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.23 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-4.0.23 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.22 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-4.0.22 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-4.0.21.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.21.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.21 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.20 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.19 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.18.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.18 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.17 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js
foreman_rh_cloud-3.0.16 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js