diff --git a/frontend/src/component/project/Project/PaginatedProjectFeatureToggles/PaginatedProjectFeatureToggles.tsx b/frontend/src/component/project/Project/PaginatedProjectFeatureToggles/PaginatedProjectFeatureToggles.tsx index ce755ab0c8..0b7d63041b 100644 --- a/frontend/src/component/project/Project/PaginatedProjectFeatureToggles/PaginatedProjectFeatureToggles.tsx +++ b/frontend/src/component/project/Project/PaginatedProjectFeatureToggles/PaginatedProjectFeatureToggles.tsx @@ -46,7 +46,7 @@ import { FeatureNameCell } from 'component/common/Table/cells/FeatureNameCell/Fe import { FeatureToggleCell } from './FeatureToggleCell/FeatureToggleCell'; import { ProjectOverviewFilters } from './ProjectOverviewFilters'; import { useDefaultColumnVisibility } from './hooks/useDefaultColumnVisibility'; -import { Placeholder } from './TablePlaceholder/TablePlaceholder'; +import { TableEmptyState } from './TableEmptyState/TableEmptyState'; import { useRowActions } from './hooks/useRowActions'; import { useUiFlag } from 'hooks/useUiFlag'; import { FeatureTagCell } from 'component/common/Table/cells/FeatureTagCell/FeatureTagCell'; @@ -457,7 +457,12 @@ export const PaginatedProjectFeatureToggles = ({ totalItems={total} /> - + + } + /> {rowActionsDialogs} = ({ total, query }) => { - if (total !== 0) { - return null; - } - +export const TableEmptyState: FC = ({ query }) => { if ((query || '')?.length > 0) { return ( = ({ total, query }) => { padding: theme.spacing(3), })} > - - No feature toggles available. Get started by adding a new - feature toggle. - + No feature toggles available. ); };