diff --git a/packages/module/patternfly-docs/content/extensions/component-groups/examples/NotAuthorized/NotAuthorizedExample.tsx b/packages/module/patternfly-docs/content/extensions/component-groups/examples/NotAuthorized/NotAuthorizedExample.tsx
index 6d4fe469..f4fea4e6 100644
--- a/packages/module/patternfly-docs/content/extensions/component-groups/examples/NotAuthorized/NotAuthorizedExample.tsx
+++ b/packages/module/patternfly-docs/content/extensions/component-groups/examples/NotAuthorized/NotAuthorizedExample.tsx
@@ -3,17 +3,22 @@ import { Button } from '@patternfly/react-core';
import NotAuthorized from "@patternfly/react-component-groups/dist/dynamic/NotAuthorized";
export const BasicExample: React.FunctionComponent = () => {
- const actions = [
+ const primaryAction =
,
- ;
+ const secondaryActions = [
+ ,
+
];
return (
{
});
it('should show custom actions', () => {
- const actions = [
+ const primaryAction =
,
+ ;
+ const secondaryActions = [
,
+
];
- const { container } = render();
+ const { container } = render();
expect(container.firstChild).toMatchSnapshot();
});
});
\ No newline at end of file
diff --git a/packages/module/src/NotAuthorized/NotAuthorized.tsx b/packages/module/src/NotAuthorized/NotAuthorized.tsx
index 208c8c10..f4691095 100644
--- a/packages/module/src/NotAuthorized/NotAuthorized.tsx
+++ b/packages/module/src/NotAuthorized/NotAuthorized.tsx
@@ -17,8 +17,10 @@ export interface NotAuthorizedProps extends Omit = ({
prevPageButtonText = 'Return to previous page',
toLandingPageText = 'Go to landing page',
toLandingPageUrl = ".",
- actions = null,
+ primaryAction = null,
+ secondaryActions = null,
serviceName,
title = `You do not have access to ${serviceName}`,
icon: Icon = LockIcon,
@@ -42,15 +45,16 @@ const NotAuthorized: React.FunctionComponent = ({
{title}>} icon={} headingLevel="h5" />
{description}
- {actions && {actions}}
+ {primaryAction ? {primaryAction} : null}
+ {secondaryActions ? {secondaryActions} : null}
{showReturnButton &&
(document.referrer ? (
-