diff --git a/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/SelectSoftwareTable/SelectSoftwareTable.tsx b/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/SelectSoftwareTable/SelectSoftwareTable.tsx
index bbe31b19d0..d629bbac9b 100644
--- a/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/SelectSoftwareTable/SelectSoftwareTable.tsx
+++ b/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/SelectSoftwareTable/SelectSoftwareTable.tsx
@@ -26,23 +26,17 @@ const generateSelectedRows = (softwareTitles: ISoftwareTitle[]) => {
interface ISelectSoftwareTableProps {
softwareTitles: ISoftwareTitle[];
onChangeSoftwareSelect: (select: boolean, id: number) => void;
- onChangeSelectAll: (selectAll: boolean) => void;
platform: SetupExperiencePlatform;
}
const SelectSoftwareTable = ({
softwareTitles,
onChangeSoftwareSelect,
- onChangeSelectAll,
platform,
}: ISelectSoftwareTableProps) => {
const tableConfig = useMemo(() => {
- return generateTableConfig(
- platform,
- onChangeSelectAll,
- onChangeSoftwareSelect
- );
- }, [onChangeSelectAll, onChangeSoftwareSelect, platform]);
+ return generateTableConfig(platform, onChangeSoftwareSelect);
+ }, [onChangeSoftwareSelect, platform]);
const initialSelectedSoftwareRows = useMemo(() => {
return generateSelectedRows(softwareTitles);
@@ -78,7 +72,6 @@ const SelectSoftwareTable = ({
searchable
searchQueryColumn="name"
isClientSideFilter
- onClearSelection={() => onChangeSelectAll(false)}
renderTableHelpText={() => (
Software will be installed on{" "}
@@ -87,6 +80,7 @@ const SelectSoftwareTable = ({
experience.
)}
+ suppressHeaderActions
/>
);
};
diff --git a/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/SelectSoftwareTable/SelectSoftwareTableConfig.tsx b/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/SelectSoftwareTable/SelectSoftwareTableConfig.tsx
index ddaab3fc3c..6f25ade804 100644
--- a/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/SelectSoftwareTable/SelectSoftwareTableConfig.tsx
+++ b/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/SelectSoftwareTable/SelectSoftwareTableConfig.tsx
@@ -1,7 +1,7 @@
import React from "react";
import { CellProps, Column } from "react-table";
-import { IHeaderProps, IStringCellProps } from "interfaces/datatable_config";
+import { IStringCellProps } from "interfaces/datatable_config";
import { ISoftwareTitle, SoftwareSource } from "interfaces/software";
import TextCell from "components/TableContainer/DataTable/TextCell";
@@ -13,7 +13,6 @@ import { SetupExperiencePlatform } from "interfaces/platform";
import { DEFAULT_EMPTY_CELL_VALUE } from "utilities/constants";
type ISelectSoftwareTableConfig = Column
;
-type ITableHeaderProps = IHeaderProps;
type ITableStringCellProps = IStringCellProps;
type ISelectionCellProps = CellProps;
@@ -32,38 +31,12 @@ const getSetupExperienceLinuxPackageCopy = (source: SoftwareSource) => {
const generateTableConfig = (
platform: SetupExperiencePlatform,
- onSelectAll: (selectAll: boolean) => void,
onSelectSoftware: (select: boolean, id: number) => void
): ISelectSoftwareTableConfig[] => {
const headerConfigs: ISelectSoftwareTableConfig[] = [
{
id: "selection",
disableSortBy: true,
- Header: (cellProps: ITableHeaderProps) => {
- const {
- checked,
- indeterminate,
- } = cellProps.getToggleAllRowsSelectedProps();
-
- const checkboxProps = {
- value: checked,
- indeterminate,
- onChange: () => {
- onSelectAll(!checked);
- cellProps.toggleAllRowsSelected();
- },
- };
- return (
- (
-
- )}
- />
- );
- },
Cell: (cellProps: ISelectionCellProps) => {
const { checked } = cellProps.row.getToggleRowSelectedProps();
const checkboxProps = {