text to content prop for WizardNavItem in ApiConnectorCreatorBreadSteps
-import {
- WizardNav,
- WizardNavItem
-} from '@patternfly/react-core';
+import { WizardNav, WizardNavItem } from '@patternfly/react-core';
import * as React from 'react';
export interface IApiConnectorCreatorBreadStepsProps {
@@ -20,38 +17,32 @@ export interface IApiConnectorCreatorBreadStepsProps {
* creator flow.
* @see [step]{@link IApiConnectorCreatorBreadStepsProps#step}
*/
-export const ApiConnectorCreatorBreadSteps: React.FunctionComponent<IApiConnectorCreatorBreadStepsProps> = (
- {
- i18nDetails,
- i18nReview,
- i18nSecurity,
- i18nSelectMethod,
- step,
- }) => (
+export const ApiConnectorCreatorBreadSteps: React.FunctionComponent<IApiConnectorCreatorBreadStepsProps> =
+ ({ i18nDetails, i18nReview, i18nSecurity, i18nSelectMethod, step }) => (
<WizardNav>
<WizardNavItem
step={1}
isCurrent={step === 1}
isDisabled={step < 1}
- text={i18nSelectMethod}
+ content={i18nSelectMethod}
/>
<WizardNavItem
step={2}
isCurrent={step === 2}
isDisabled={step < 2}
- text={i18nReview}
+ content={i18nReview}
/>
<WizardNavItem
step={3}
isCurrent={step === 3}
isDisabled={step < 3}
- text={i18nSecurity}
+ content={i18nSecurity}
/>
<WizardNavItem
step={4}
isCurrent={step === 4}
isDisabled={step < 4}
- text={i18nDetails}
+ content={i18nDetails}
/>
</WizardNav>
);
