rm isSmall to variant prop, remove footer prop on IntegrationExposeVia
@@ -22,7 +22,8 @@ export interface IIntegrationExposeViaProps {
onChange: (exposure: string) => void;
}
-export const IntegrationExposeVia: React.FunctionComponent<IIntegrationExposeViaProps> = ({
+export const IntegrationExposeVia: React.FunctionComponent<IIntegrationExposeViaProps> =
+ ({
exposure,
exposureMeans,
isUnpublished,
@@ -55,7 +56,7 @@ export const IntegrationExposeVia: React.FunctionComponent<IIntegrationExposeVia
};
const disableDiscoveryDialog = (
<Modal
- isSmall={true}
+ variant={'small'}
title={i18nDisableDiscovery}
isOpen={showDialog}
onClose={doHideDialog}
@@ -65,9 +66,8 @@ export const IntegrationExposeVia: React.FunctionComponent<IIntegrationExposeVia
</Button>,
<Button key="cancel" variant="link" onClick={doHideDialog}>
{i18nNo}
- </Button>
+ </Button>,
]}
- isFooterLeftAligned={true}
>
<p className={'lead'}>
{i18nDisableDiscoveryConfirm}
@@ -83,19 +83,22 @@ export const IntegrationExposeVia: React.FunctionComponent<IIntegrationExposeVia
<PageSection>
<div className={'pf-c-content'}>
<Modal
- isSmall={true}
+ variant={'small'}
title={i18nEnableDiscovery}
isOpen={showDialog}
onClose={doHideDialog}
actions={[
- <Button key="confirm" variant="primary" onClick={doEnable3scale}>
+ <Button
+ key="confirm"
+ variant="primary"
+ onClick={doEnable3scale}
+ >
{i18nYes}
</Button>,
<Button key="cancel" variant="link" onClick={doHideDialog}>
{i18nNo}
- </Button>
+ </Button>,
]}
- isFooterLeftAligned={true}
>
<p className={'lead'}>
{i18nEnableDiscoveryConfirm}
