From df8c6e7ce41e0efdd2bb80c5e29a0c4f8a22b5c4 Mon Sep 17 00:00:00 2001 From: ppadti Date: Thu, 12 Oct 2023 01:32:11 +0530 Subject: [PATCH] Cleanup Empty State Text --- frontend/src/concepts/pipelines/NoPipelineServer.tsx | 4 ---- .../modelServing/screens/projects/ModelServingPlatform.tsx | 5 ----- .../src/pages/projects/screens/detail/EmptyDetailsList.tsx | 2 +- .../detail/data-connections/DataConnectionsList.tsx | 7 +------ .../projects/screens/detail/notebooks/NotebookList.tsx | 7 +------ .../projects/screens/detail/pipelines/PipelinesList.tsx | 4 +--- .../pages/projects/screens/detail/storage/StorageList.tsx | 7 +------ 7 files changed, 5 insertions(+), 31 deletions(-) diff --git a/frontend/src/concepts/pipelines/NoPipelineServer.tsx b/frontend/src/concepts/pipelines/NoPipelineServer.tsx index 2e1ac9aed9..e0c08c85f2 100644 --- a/frontend/src/concepts/pipelines/NoPipelineServer.tsx +++ b/frontend/src/concepts/pipelines/NoPipelineServer.tsx @@ -2,7 +2,6 @@ import * as React from 'react'; import { EmptyState, EmptyStateIcon, - EmptyStateBody, EmptyStateHeader, EmptyStateFooter, } from '@patternfly/react-core'; @@ -20,9 +19,6 @@ const NoPipelineServer: React.FC = ({ variant }) => ( icon={} headingLevel="h3" /> - - To create and manage pipelines, first enable them by configuring a pipeline server. - diff --git a/frontend/src/pages/modelServing/screens/projects/ModelServingPlatform.tsx b/frontend/src/pages/modelServing/screens/projects/ModelServingPlatform.tsx index 2fc12d23cb..2a2bff4f8c 100644 --- a/frontend/src/pages/modelServing/screens/projects/ModelServingPlatform.tsx +++ b/frontend/src/pages/modelServing/screens/projects/ModelServingPlatform.tsx @@ -106,11 +106,6 @@ const ModelServingPlatform: React.FC = () => { emptyState={ } diff --git a/frontend/src/pages/projects/screens/detail/EmptyDetailsList.tsx b/frontend/src/pages/projects/screens/detail/EmptyDetailsList.tsx index d7c96cfc78..32a5b728f3 100644 --- a/frontend/src/pages/projects/screens/detail/EmptyDetailsList.tsx +++ b/frontend/src/pages/projects/screens/detail/EmptyDetailsList.tsx @@ -10,7 +10,7 @@ import { SVGIconProps } from '@patternfly/react-icons/dist/esm/createIcon'; type EmptyDetailsListProps = { title: string; - description: string; + description?: string; icon?: React.ComponentClass; }; diff --git a/frontend/src/pages/projects/screens/detail/data-connections/DataConnectionsList.tsx b/frontend/src/pages/projects/screens/detail/data-connections/DataConnectionsList.tsx index c13c7af21a..3fb04cf421 100644 --- a/frontend/src/pages/projects/screens/detail/data-connections/DataConnectionsList.tsx +++ b/frontend/src/pages/projects/screens/detail/data-connections/DataConnectionsList.tsx @@ -34,12 +34,7 @@ const DataConnectionsList: React.FC = () => { isLoading={!loaded} isEmpty={isDataConnectionsEmpty} loadError={error} - emptyState={ - - } + emptyState={} > diff --git a/frontend/src/pages/projects/screens/detail/notebooks/NotebookList.tsx b/frontend/src/pages/projects/screens/detail/notebooks/NotebookList.tsx index 17dcade087..8b42f80d7f 100644 --- a/frontend/src/pages/projects/screens/detail/notebooks/NotebookList.tsx +++ b/frontend/src/pages/projects/screens/detail/notebooks/NotebookList.tsx @@ -44,12 +44,7 @@ const NotebookList: React.FC = () => { isLoading={!loaded} loadError={loadError} isEmpty={isNotebooksEmpty} - emptyState={ - - } + emptyState={} > diff --git a/frontend/src/pages/projects/screens/detail/pipelines/PipelinesList.tsx b/frontend/src/pages/projects/screens/detail/pipelines/PipelinesList.tsx index 4b41778b1e..c71cf5ed7a 100644 --- a/frontend/src/pages/projects/screens/detail/pipelines/PipelinesList.tsx +++ b/frontend/src/pages/projects/screens/detail/pipelines/PipelinesList.tsx @@ -39,9 +39,7 @@ const PipelinesList: React.FC = ({ setIsPipelinesEmpty }) => } if (pipelines.length === 0) { - return ( - - ); + return ; } return ( diff --git a/frontend/src/pages/projects/screens/detail/storage/StorageList.tsx b/frontend/src/pages/projects/screens/detail/storage/StorageList.tsx index 1bf524d29e..c873c588c3 100644 --- a/frontend/src/pages/projects/screens/detail/storage/StorageList.tsx +++ b/frontend/src/pages/projects/screens/detail/storage/StorageList.tsx @@ -34,12 +34,7 @@ const StorageList: React.FC = () => { isLoading={!loaded} isEmpty={isPvcsEmpty} loadError={loadError} - emptyState={ - - } + emptyState={} > setOpen(true)} />