diff --git a/src/routes/settings/tagDetails/tagTable.tsx b/src/routes/settings/tagDetails/tagTable.tsx index 8da98bebf..150149531 100644 --- a/src/routes/settings/tagDetails/tagTable.tsx +++ b/src/routes/settings/tagDetails/tagTable.tsx @@ -7,6 +7,7 @@ import React from 'react'; import type { WrappedComponentProps } from 'react-intl'; import { injectIntl } from 'react-intl'; import { DataTable } from 'routes/views/details/components/dataTable'; +import { styles } from 'routes/views/details/components/dataTable/dataTable.styles'; import type { ComputedReportItem } from 'utils/computedReport/getComputedReportItems'; import { getUnsortedComputedReportItems } from 'utils/computedReport/getComputedReportItems'; import type { RouterComponentProps } from 'utils/router'; @@ -85,6 +86,7 @@ class DetailsTableBase extends React.Component ), }, - { value: 'source type' }, + { value: 'source type', style: styles.lastItem }, ], item, selected: isAllSelected || (selectedItems && selectedItems.find(val => val.id === item.id) !== undefined), diff --git a/src/routes/views/components/optimizations/optimizationsTable.tsx b/src/routes/views/components/optimizations/optimizationsTable.tsx index 28e0628df..8089b9cf1 100644 --- a/src/routes/views/components/optimizations/optimizationsTable.tsx +++ b/src/routes/views/components/optimizations/optimizationsTable.tsx @@ -105,7 +105,7 @@ class OptimizationsTableBase extends React.Component { }; public render() { - const { columns, intl, isLoading, isOptimizations, rows } = this.props; + const { columns, intl, isActionsCell = false, isLoading, isOptimizations, rows } = this.props; return ( <> @@ -193,7 +194,7 @@ class DataTable extends React.Component { dataLabel={columns[cellIndex].name} key={`cell-${rowIndex}-${cellIndex}`} modifier="nowrap" - isActionCell={!isOptimizations && cellIndex === row.cells.length - 1} + isActionCell={isActionsCell && cellIndex === row.cells.length - 1} style={item.style} > {item.value} diff --git a/src/routes/views/details/gcpDetails/detailsTable.tsx b/src/routes/views/details/gcpDetails/detailsTable.tsx index 853c33300..ad6f38a96 100644 --- a/src/routes/views/details/gcpDetails/detailsTable.tsx +++ b/src/routes/views/details/gcpDetails/detailsTable.tsx @@ -259,6 +259,7 @@ class DetailsTableBase extends React.Component