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