Sha256: b4749e61892da4bf8d862e095d85587ae0e8981db45df20cfbe58e8d023e47f1

Contents?: true

Size: 867 Bytes

Versions: 15

Compression:

Stored size: 867 Bytes

Contents

import React, { useEffect } from 'react';
import { translate as __ } from 'foremanReact/common/I18n';
import { useSelector, useDispatch } from 'react-redux';
import getContentViews from './ContentViewsActions';
import { selectContentViews,
  selectContentViewStatus,
  selectContentViewError } from './ContentViewSelectors';

import ContentViewsTable from './Table/ContentViewsTable';

const ContentViewsPage = () => {
  const items = useSelector(selectContentViews);
  const status = useSelector(selectContentViewStatus);
  const error = useSelector(selectContentViewError);

  const dispatch = useDispatch();

  useEffect(() => {
    dispatch(getContentViews());
  }, []);

  return (
    <React.Fragment>
      <h1>{__('Content Views')}</h1>
      <ContentViewsTable {...{ items, status, error }} />
    </React.Fragment>
  );
};

export default ContentViewsPage;

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
katello-3.16.2 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.1.2 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.1.1 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.1 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.0 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.0.rc5.1 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.0.rc5 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.0.rc4.1 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.0.rc4 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.0.rc3.1 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.0.rc3 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.0.rc2.1 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.0.rc2 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.0.rc1.1 webpack/scenes/ContentViews/ContentViewsPage.js
katello-3.16.0.rc1 webpack/scenes/ContentViews/ContentViewsPage.js