Skip to content

Commit

Permalink
Merge pull request #1960 from ppadti/issue-1857
Browse files Browse the repository at this point in the history
Cleanup Empty State Text
  • Loading branch information
openshift-merge-bot[bot] authored Nov 30, 2023
2 parents 288d890 + df8c6e7 commit b1bcc05
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 31 deletions.
4 changes: 0 additions & 4 deletions frontend/src/concepts/pipelines/NoPipelineServer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as React from 'react';
import {
EmptyState,
EmptyStateIcon,
EmptyStateBody,
EmptyStateHeader,
EmptyStateFooter,
} from '@patternfly/react-core';
Expand All @@ -20,9 +19,6 @@ const NoPipelineServer: React.FC<NoPipelineServerProps> = ({ variant }) => (
icon={<EmptyStateIcon icon={WrenchIcon} />}
headingLevel="h3"
/>
<EmptyStateBody>
To create and manage pipelines, first enable them by configuring a pipeline server.
</EmptyStateBody>
<EmptyStateFooter>
<CreatePipelineServerButton variant={variant} />
</EmptyStateFooter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ const ModelServingPlatform: React.FC = () => {
emptyState={
<EmptyDetailsList
title={isProjectModelMesh ? 'No model servers' : 'No deployed models'}
description={
isProjectModelMesh
? 'Before deploying a model, you must first add a model server.'
: 'To get started, deploy a model.'
}
icon={PlusCircleIcon}
/>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { SVGIconProps } from '@patternfly/react-icons/dist/esm/createIcon';

type EmptyDetailsListProps = {
title: string;
description: string;
description?: string;
icon?: React.ComponentClass<SVGIconProps>;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ const DataConnectionsList: React.FC = () => {
isLoading={!loaded}
isEmpty={isDataConnectionsEmpty}
loadError={error}
emptyState={
<EmptyDetailsList
title="No data connections"
description="To get started, add data to your project."
/>
}
emptyState={<EmptyDetailsList title="No data connections" />}
>
<DataConnectionsTable connections={connections} refreshData={refreshAllProjectData} />
</DetailsSection>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ const NotebookList: React.FC = () => {
isLoading={!loaded}
loadError={loadError}
isEmpty={isNotebooksEmpty}
emptyState={
<EmptyDetailsList
title="No workbenches"
description="To get started, create a workbench."
/>
}
emptyState={<EmptyDetailsList title="No workbenches" />}
>
<NotebookTable notebookStates={notebookStates} refresh={refresh} />
</DetailsSection>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ const PipelinesList: React.FC<PipelinesListProps> = ({ setIsPipelinesEmpty }) =>
}

if (pipelines.length === 0) {
return (
<EmptyDetailsList title="No pipelines" description="To get started, import a pipeline." />
);
return <EmptyDetailsList title="No pipelines" />;
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ const StorageList: React.FC = () => {
isLoading={!loaded}
isEmpty={isPvcsEmpty}
loadError={loadError}
emptyState={
<EmptyDetailsList
title="No storage"
description="To get started, add existing or create new cluster storage."
/>
}
emptyState={<EmptyDetailsList title="No storage" />}
>
<StorageTable pvcs={pvcs} refresh={refresh} onAddPVC={() => setOpen(true)} />
</DetailsSection>
Expand Down

0 comments on commit b1bcc05

Please sign in to comment.