Sha256: 68e2370b438aa0068e28d449ed83aa7fda5220c3b781935b60f42bc331395ebf
Contents?: true
Size: 1.09 KB
Versions: 6
Compression:
Stored size: 1.09 KB
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import PageLayout from 'foremanReact/routes/common/PageLayout/PageLayout'; import { JobWizard } from './JobWizard'; const JobWizardPage = ({ location: { search } }) => { const title = __('Run job'); const breadcrumbOptions = { breadcrumbItems: [ { caption: __('Jobs'), url: `/job_invocations` }, { caption: title }, ], }; return ( <PageLayout header={title} breadcrumbOptions={breadcrumbOptions} searchable={false} toolbarButtons={ <Button variant="link" component="a" href={`/old/job_invocations/new${search}`} > {__('Use legacy form')} </Button> } pageSectionType="wizard" > <React.Fragment> <JobWizard /> </React.Fragment> </PageLayout> ); }; JobWizardPage.propTypes = { location: PropTypes.shape({ search: PropTypes.string, }).isRequired, }; export default JobWizardPage;
Version data entries
6 entries across 6 versions & 1 rubygems