Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add toLandingPageUrl to NotAuthorized #30

Merged
merged 1 commit into from
Jul 7, 2023
Merged

Conversation

fhlavac
Copy link
Collaborator

@fhlavac fhlavac commented Jul 6, 2023

RHCLOUD-26913

Added toLandingPageUrl to NotAuthorized

@@ -60,7 +62,7 @@ export const NotAuthorized: React.FunctionComponent<NotAuthorizedProps> = ({
{prevPageButtonText}
</Button>
) : (
<Button variant="primary" component="a" href=".">
<Button variant="primary" component="a" href={ toLandingPageUrl ?? "." }>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make the "." a default prop instead of running the condition?

@Hyperkid123 Hyperkid123 merged commit d49125b into patternfly:main Jul 7, 2023
4 checks passed
@github-actions
Copy link

github-actions bot commented Jul 7, 2023

🎉 This PR is included in version 1.0.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants