wizard: add oscap to the review step

The review step now list the OpenSCAP policy chosen by the user.
This commit is contained in:
Thomas Lavocat 2023-10-05 16:27:44 +02:00 committed by Klara Simickova
parent 3e11639960
commit 18cc74cf6b
2 changed files with 36 additions and 0 deletions

View file

@ -589,3 +589,24 @@ export const ImageDetailsList = () => {
</TextContent>
);
};
export const OscapList = () => {
const { getState } = useFormApi();
const oscapPolicy = getState()?.values?.['oscap-policy'];
return (
<TextContent>
<TextList component={TextListVariants.dl}>
<TextListItem
component={TextListItemVariants.dt}
className="pf-u-min-width"
>
Policy
</TextListItem>
<TextListItem component={TextListItemVariants.dd}>
{oscapPolicy}
</TextListItem>
</TextList>
<br />
</TextContent>
);
};