Skip to content

Commit

Permalink
Update empty pipeline server page button variant (#3303)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaoDaoNoCode authored Oct 9, 2024
1 parent 25e1a44 commit 25c0564
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
EmptyStateBody,
Button,
EmptyStateIcon,
ButtonVariant,
} from '@patternfly/react-core';
import { ExclamationTriangleIcon } from '@patternfly/react-icons';
import ExternalLink from '~/components/ExternalLink';
Expand Down Expand Up @@ -39,7 +40,7 @@ const EnsureCompatiblePipelineServer: React.FC<EnsureCompatiblePipelineServerPro
}

if (!pipelinesServer.installed) {
return <NoPipelineServer variant="secondary" />;
return <NoPipelineServer variant={ButtonVariant.primary} />;
}

if (!pipelinesServer.compatible) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from 'react';
import { ButtonVariant } from '@patternfly/react-core';
import ApplicationsPage from '~/pages/ApplicationsPage';
import NoPipelineServer from '~/concepts/pipelines/NoPipelineServer';
import PipelineCoreProjectSelector from '~/pages/pipelines/global/PipelineCoreProjectSelector';
Expand Down Expand Up @@ -26,7 +27,7 @@ const PipelineCoreApplicationPage: React.FC<PipelineCoreApplicationPageProps> =
{...pageProps}
loaded={!pipelinesAPi.pipelinesServer.initializing}
empty={!pipelinesAPi.pipelinesServer.installed}
emptyStatePage={<NoPipelineServer />}
emptyStatePage={<NoPipelineServer variant={ButtonVariant.primary} />}
headerContent={<PipelineCoreProjectSelector getRedirectPath={getRedirectPath} />}
provideChildrenPadding={!overrideChildPadding}
>
Expand Down

0 comments on commit 25c0564

Please sign in to comment.