From 43834be065ec260419f937a6db72450655d42ddf Mon Sep 17 00:00:00 2001 From: olav Date: Tue, 5 Apr 2022 11:47:17 +0200 Subject: [PATCH] refactor: use onClose instead of hideSecondaryButton (#842) --- frontend/src/component/common/Dialogue/Dialogue.tsx | 4 +--- .../SegmentDeleteUsedSegment/SegmentDeleteUsedSegment.tsx | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/component/common/Dialogue/Dialogue.tsx b/frontend/src/component/common/Dialogue/Dialogue.tsx index 772f732425..2e46e0861b 100644 --- a/frontend/src/component/common/Dialogue/Dialogue.tsx +++ b/frontend/src/component/common/Dialogue/Dialogue.tsx @@ -24,7 +24,6 @@ interface IDialogue { disabledPrimaryButton?: boolean; formId?: string; permissionButton?: JSX.Element; - hideSecondaryButton?: boolean; } const Dialogue: React.FC = ({ @@ -40,7 +39,6 @@ const Dialogue: React.FC = ({ fullWidth = false, formId, permissionButton, - hideSecondaryButton, }) => { const styles = useStyles(); const handleClick = formId @@ -94,7 +92,7 @@ const Dialogue: React.FC = ({ /> {secondaryButtonText || 'No, take me back'} diff --git a/frontend/src/component/segments/SegmentDelete/SegmentDeleteUsedSegment/SegmentDeleteUsedSegment.tsx b/frontend/src/component/segments/SegmentDelete/SegmentDeleteUsedSegment/SegmentDeleteUsedSegment.tsx index 0cfbe278ab..f05cc9ca02 100644 --- a/frontend/src/component/segments/SegmentDelete/SegmentDeleteUsedSegment/SegmentDeleteUsedSegment.tsx +++ b/frontend/src/component/segments/SegmentDelete/SegmentDeleteUsedSegment/SegmentDeleteUsedSegment.tsx @@ -32,7 +32,6 @@ export const SegmentDeleteUsedSegment = ({ open={open} primaryButtonText="OK" onClick={handleCancel} - hideSecondaryButton >

The following feature toggles are using the{' '}