Skip to content

Commit

Permalink
chore: Adjust the threat pack table
Browse files Browse the repository at this point in the history
  • Loading branch information
jessieweiyi committed Jul 15, 2024
1 parent f9da105 commit 617e56c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const ThreatPack: FC<ThreatPackProp> = ({
header: 'Threat',
cell: (data) => data.statement,
sortingField: 'statement',
minWidth: 500,
},
{
id: 'threatSource',
Expand Down Expand Up @@ -159,6 +160,10 @@ const ThreatPack: FC<ThreatPackProp> = ({
isItemDisabled={isItemDisabled}
selectedItems={totalSelectedItems}
onSelectionChange={({ detail }) => setSelectedItems([...detail.selectedItems])}
resizableColumns
stickyColumns={{
first: 1,
}}
/></SpaceBetween>
</ContentLayout>);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const MitigationPack: FC<MitigationPackProps> = ({ workspaceId, mitigationPackId
workspaceId={workspaceId || null}
composerMode='Full'
>
<MitigationPackComponent mitigationPackId={mitigationPackId || 'Sample'}/>
<MitigationPackComponent mitigationPackId={mitigationPackId || 'GenAIChatBot'}/>
</WorkspaceContextAggregator>);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ThreatPack: FC<ThreatPackProps> = ({ workspaceId, threatPackId }) => {
workspaceId={workspaceId || null}
composerMode='Full'
>
<ThreatPackComponent threatPackId={threatPackId || 'Sample'}/>
<ThreatPackComponent threatPackId={threatPackId || 'GenAIChatBot'}/>
</WorkspaceContextAggregator>);
};

Expand Down

0 comments on commit 617e56c

Please sign in to comment.