From f38a6899d6b70b5035880cacaf73d5fd96d712ac Mon Sep 17 00:00:00 2001 From: dkmyta Date: Sat, 21 Dec 2024 13:53:31 -0800 Subject: [PATCH] Update var name --- .../components/threats-modal/threat-actions.tsx | 14 +++++++------- .../threats-modal/threat-fix-confirmation.tsx | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/projects/js-packages/components/components/threats-modal/threat-actions.tsx b/projects/js-packages/components/components/threats-modal/threat-actions.tsx index f6b4bdba699d7..04d37c53f10d0 100644 --- a/projects/js-packages/components/components/threats-modal/threat-actions.tsx +++ b/projects/js-packages/components/components/threats-modal/threat-actions.tsx @@ -9,20 +9,20 @@ import { ThreatsModalContext } from '.'; /** * ThreatActions component * - * @param {object} props - The props. - * @param {Threat[]} props.selectedThreats - The selected threats. - * @param {boolean} props.canReturnToBulk - Whether the user can return to the bulk view. - * @param {Function} props.viewBulkThreats - The function to view all threats. + * @param {object} props - The props. + * @param {Threat[]} props.selectedThreats - The selected threats. + * @param {boolean} props.canReturnToBulkThreats - Whether the user can return to the bulk view. + * @param {Function} props.viewBulkThreats - The function to view all threats. * * @return {JSX.Element | null} The rendered action buttons or null if no actions are available. */ const ThreatActions = ( { selectedThreats, - canReturnToBulk, + canReturnToBulkThreats, viewBulkThreats, }: { selectedThreats: Threat[]; - canReturnToBulk: boolean; + canReturnToBulkThreats: boolean; viewBulkThreats: () => void; } ): JSX.Element => { const { @@ -77,7 +77,7 @@ const ThreatActions = ( { const renderIndividualActions = () => ( <> - { canReturnToBulk && ( + { canReturnToBulkThreats && (