diff --git a/projects/js-packages/components/components/threats-modal/index.tsx b/projects/js-packages/components/components/threats-modal/index.tsx index 3b31f05204a31..9936021a99841 100644 --- a/projects/js-packages/components/components/threats-modal/index.tsx +++ b/projects/js-packages/components/components/threats-modal/index.tsx @@ -9,6 +9,7 @@ import ThreatFixConfirmation from './threat-fix-confirmation'; interface ThreatModalContextType { closeModal: () => void; + currentThreats: Threat[]; threatsList: Threat[]; setThreatsList: Dispatch< SetStateAction< Threat[] > >; isBulk: boolean; @@ -110,6 +111,7 @@ export default function ThreatsModal( { { +const ThreatActions = ( { + selectedThreats, + canReturnToBulk, + viewBulkThreats, +}: { + selectedThreats: Threat[]; + canReturnToBulk: boolean; + viewBulkThreats: () => void; +} ): JSX.Element => { const { closeModal, + currentThreats, isBulk, actionToConfirm, handleFixThreatClick, @@ -66,6 +77,15 @@ const ThreatActions = ( { selectedThreats }: { selectedThreats: Threat[] } ): JS const renderIndividualActions = () => ( <> + { canReturnToBulk && ( + + ) } { firstThreat.status === 'ignored' && (