Skip to content

Commit 4fe725b

Browse files
committed
Address feedback
1 parent cd00445 commit 4fe725b

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

frontend/public/components/namespace.jsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -764,11 +764,6 @@ export const ProjectsTable = (props) => {
764764
const headerWithMetrics = () => projectTableHeader({ showMetrics: true, showActions: true });
765765
const headerNoMetrics = () => projectTableHeader({ showMetrics: false, showActions: true });
766766

767-
const ProjectNotFoundMessage = () => {
768-
const { t } = useTranslation();
769-
return <OpenShiftGettingStarted title={t('public~Welcome to OpenShift')} />;
770-
};
771-
772767
const ProjectEmptyMessage = () => {
773768
const { t } = useTranslation();
774769
return (
@@ -828,7 +823,7 @@ export const ProjectList = ({ data, ...tableProps }) => {
828823
data={data}
829824
Header={showMetrics ? headerWithMetrics : headerNoMetrics}
830825
Row={ProjectTableRow}
831-
NoDataEmptyMsg={ProjectNotFoundMessage}
826+
NoDataEmptyMsg={OpenShiftGettingStarted}
832827
EmptyMsg={ProjectEmptyMessage}
833828
customData={customData}
834829
virtualize

frontend/public/components/start-guide.tsx

+6-10
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import { K8sResourceKind } from '../module/k8s/types';
1313
import { useCreateNamespaceOrProjectModal } from '@console/shared/src/hooks/useCreateNamespaceOrProjectModal';
1414
import { RootState } from '../redux';
1515
import { useFlag } from '@console/shared/src';
16-
import { ExternalLinkAltIcon, OpenshiftIcon } from '@patternfly/react-icons';
16+
import { ClusterIcon, ExternalLinkAltIcon } from '@patternfly/react-icons';
1717

18-
export const OpenShiftGettingStarted: React.FCC<OpenShiftGettingStartedProps> = ({ title }) => {
18+
export const OpenShiftGettingStarted: React.FCC<OpenShiftGettingStartedProps> = () => {
1919
const { t } = useTranslation();
2020
const [, setActiveNamespace] = useActiveNamespace();
2121
const [perspective] = useActivePerspective();
@@ -67,21 +67,17 @@ export const OpenShiftGettingStarted: React.FCC<OpenShiftGettingStartedProps> =
6767
return (
6868
<ConsoleEmptyState
6969
variant={EmptyStateVariant.xl}
70-
icon={OpenshiftIcon}
71-
title={title || t('public~Getting started in OpenShift')}
70+
icon={ClusterIcon}
71+
title={t('public~Welcome')}
7272
primaryActions={primaryActions}
7373
secondaryActions={secondaryActions}
7474
>
7575
{canCreate ? (
76-
<p>
77-
{t(
78-
'public~OpenShift helps you quickly develop, host, and scale applications. To get started, create a project for your application.',
79-
)}
80-
</p>
76+
<p>{t('public~To get started, create a project for your application.')}</p>
8177
) : (
8278
<p>
8379
{t(
84-
"public~OpenShift helps you quickly develop, host, and scale applications. To get started, you'll need a project. Currently, you can't create or access any projects.",
80+
"public~To get started, you'll need a project. Currently, you can't create or access any projects.",
8581
)}
8682
{!createProjectMessage &&
8783
t("public~ You'll need to contact a cluster administrator for help.")}

0 commit comments

Comments
 (0)