diff --git a/packages/components/src/components/contract-card/contract-card-items/toggle-card-dialog.tsx b/packages/components/src/components/contract-card/contract-card-items/toggle-card-dialog.tsx index 3d429e5cfc26..d15200f737bf 100644 --- a/packages/components/src/components/contract-card/contract-card-items/toggle-card-dialog.tsx +++ b/packages/components/src/components/contract-card/contract-card-items/toggle-card-dialog.tsx @@ -2,7 +2,6 @@ import React from 'react'; import { isDesktop, isMobile } from '@deriv/shared'; import ContractCardDialog from './contract-card-dialog'; import ContractUpdateForm from './contract-update-form'; -import PopoverMessageCheckbox from '../../popover-message-checkbox'; import Icon from '../../icon'; import DesktopWrapper from '../../desktop-wrapper'; import MobileDialog from '../../mobile-dialog'; @@ -53,7 +52,7 @@ const ToggleCardDialog = ({ const [is_visible, setIsVisible] = React.useState(false); const [top, setTop] = React.useState(0); const [left, setLeft] = React.useState(0); - const [is_do_not_show_selected, setIsDoNotShowSelected] = React.useState(!should_show_cancellation_warning); + const is_do_not_show_selected = !should_show_cancellation_warning; const toggle_ref = React.useRef(null); const dialog_ref = React.useRef(null); @@ -95,10 +94,6 @@ const ToggleCardDialog = ({ } }; - const onPopoverCheckboxChange = () => { - setIsDoNotShowSelected(!is_do_not_show_selected); - }; - const toggleDialog = (e: React.MouseEvent) => { e.preventDefault(); e.stopPropagation(); @@ -134,15 +129,7 @@ const ToggleCardDialog = ({ is_bubble_hover_enabled margin={2} zIndex='2' - message={ - - } + message={getCardLabels().TAKE_PROFIT_LOSS_NOT_AVAILABLE} onBubbleClose={onPopoverClose} >
{edit_icon}