Sha256: 60cc1da40cfee2cb1f04d0df3a46da8d1725b7d305da4fb38137065fb58f13b7
Contents?: true
Size: 1.39 KB
Versions: 4
Compression:
Stored size: 1.39 KB
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Title, Flex, FlexItem, 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} beforeToolbarComponent={ <Flex> <FlexItem> <Title headingLevel="h2" size="2xl"> {title} </Title> </FlexItem> <FlexItem align={{ default: 'alignRight' }}> <Button variant="link" component="a" href={`/old/job_invocations/new${search}`} > {__('Use legacy form')} </Button> </FlexItem> </Flex> } pageSectionType="wizard" > <React.Fragment> <JobWizard /> </React.Fragment> </PageLayout> ); }; JobWizardPage.propTypes = { location: PropTypes.shape({ search: PropTypes.string, }).isRequired, }; export default JobWizardPage;
Version data entries
4 entries across 4 versions & 1 rubygems