Skip to content

Bug - <AlertActionLink> - does not support ReactNode as its child #9006

@radekkaluzik

Description

@radekkaluzik

Describe the problem
<AlertActionLink> which is a part of <Alert> component does not support ReactNode as its child - it only supports children: string[]

How do you reproduce the problem?

<AlertActionLink>
                {/** @ts-ignore*/}
                <a
                  href="https://access.redhat.com/support/policy/updates/hybridcloud-console/lifecycle"
                  target="_blank"
                  rel="noreferrer"
                  title="Learn more link"
                >
                  Learn more
                </a>
              </AlertActionLink>

Expected behavior
Add support for ReactNode

Is this issue blocking you?
Workaround is to disable TS

Screenshots
N/A

What is your environment?

  • OS: [iOS]
  • Browser [chrome]
  • Version [112.0.5615.49]

What is your product and what release date are you targeting?
https://console.redhat.com/

Any other information?
N/A

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions