Wizard: Fix "button in a button" warning

This adds a component prop to the expandable button, solving the `Warning: validateDOMNesting(...): <button> cannot appear as a descendant of <button>.` warning that was repeatedly printed to the test output.
This commit is contained in:
regexowl 2024-09-02 10:27:10 +02:00 committed by Klara Simickova
parent f1bce4b3ba
commit 10f0c92410

View file

@ -111,7 +111,7 @@ const Review = ({ snapshottingEnabled }: { snapshottingEnabled: boolean }) => {
component={TextListItemVariants.dt}
className="pf-u-min-width pf-v5-u-text-align-left"
>
<Button variant="link" isInline>
<Button variant="link" component="span" isInline>
{label}
</Button>
</TextListItem>