11import PropTypes from 'prop-types' ;
22import React , { useState } from 'react' ;
33
4- import { Tabs , Tab , TabTitleText } from '@patternfly/react-core' ;
5- import { DropdownItem } from '@patternfly/react-core/deprecated' ;
4+ import { DropdownItem , Tabs , Tab , TabTitleText } from '@patternfly/react-core' ;
65import CardTemplate from 'foremanReact/components/HostDetails/Templates/CardItem/CardTemplate' ;
76import { translate as __ } from 'foremanReact/common/I18n' ;
87import { foremanUrl } from 'foremanReact/common/helpers' ;
@@ -26,14 +25,14 @@ const RecentJobsCard = ({ hostDetails: { name, id } }) => {
2625 header = { __ ( 'Recent jobs' ) }
2726 dropdownItems = { [
2827 < DropdownItem
29- href = { foremanUrl ( `${ JOB_BASE_URL } ${ id } ` ) }
28+ to = { foremanUrl ( `${ JOB_BASE_URL } ${ id } ` ) }
3029 key = "link-to-all"
3130 ouiaId = "link-to-all-dropdown-item"
3231 >
3332 { __ ( 'View all jobs' ) }
3433 </ DropdownItem > ,
3534 < DropdownItem
36- href = { foremanUrl (
35+ to = { foremanUrl (
3736 `${ JOB_BASE_URL } ${ id } +and+status+%3D+failed+or+status%3D+succeeded`
3837 ) }
3938 key = "link-to-finished"
@@ -42,14 +41,14 @@ const RecentJobsCard = ({ hostDetails: { name, id } }) => {
4241 { __ ( 'View finished jobs' ) }
4342 </ DropdownItem > ,
4443 < DropdownItem
45- href = { foremanUrl ( `${ JOB_BASE_URL } ${ id } +and+status+%3D+running` ) }
44+ to = { foremanUrl ( `${ JOB_BASE_URL } ${ id } +and+status+%3D+running` ) }
4645 key = "link-to-running"
4746 ouiaId = "link-to-running-dropdown-item"
4847 >
4948 { __ ( 'View running jobs' ) }
5049 </ DropdownItem > ,
5150 < DropdownItem
52- href = { foremanUrl ( `${ JOB_BASE_URL } ${ id } +and+status+%3D+queued` ) }
51+ to = { foremanUrl ( `${ JOB_BASE_URL } ${ id } +and+status+%3D+queued` ) }
5352 key = "link-to-scheduled"
5453 ouiaId = "link-to-scheduled-dropdown-item"
5554 >
0 commit comments