Skip to content

Commit

Permalink
Fix missing props export for NotAuthorized component.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Sep 7, 2023
1 parent c65cf58 commit 609441f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"dependencies": {
"@redhat-cloud-services/frontend-components-utilities": "^4.0.0",
"@redhat-cloud-services/types": "^0.0.24",
"@patternfly/react-component-groups": "^1.0.13",
"@patternfly/react-component-groups": "^1.0.14",
"@scalprum/core": "^0.5.1",
"@scalprum/react-core": "^0.5.1",
"sanitize-html": "^2.7.2"
Expand Down
9 changes: 2 additions & 7 deletions packages/components/src/NotAuthorized/NotAuthorized.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import React from 'react';
import { NotAuthorized as NotAuthorizedPF } from '@patternfly/react-component-groups/dist/dynamic/NotAuthorized';

interface NotAuthorizedProps {
/** Custom description */
description?: React.ReactNode;
}

import { NotAuthorized as NotAuthorizedPF, NotAuthorizedProps } from '@patternfly/react-component-groups/dist/dynamic/NotAuthorized';
export { NotAuthorizedProps } from '@patternfly/react-component-groups/dist/dynamic/NotAuthorized';
/**
* @deprecated Do not use deprecated NotAuthorized import, the component has been moved to @patternfly/react-component-groups
*/
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/NotAuthorized/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { default } from './NotAuthorized';
export * from './NotAuthorized';
export { default as NotAuthorized } from './NotAuthorized';

0 comments on commit 609441f

Please sign in to comment.