V2Wizard: Add blueprint name and description to the Review step

This commit is contained in:
regexowl 2024-05-08 12:10:35 +02:00 committed by Klara Simickova
parent ca3baea7d6
commit b7f7f0a073

View file

@ -1,19 +1,29 @@
import React from 'react';
import { Form, Title } from '@patternfly/react-core';
import { Form, Text, Title } from '@patternfly/react-core';
import Review from './ReviewStep';
import { useAppSelector } from '../../../../store/hooks';
import {
selectBlueprintDescription,
selectBlueprintName,
} from '../../../../store/wizardSlice';
const ReviewStep = ({
snapshottingEnabled,
}: {
snapshottingEnabled: boolean;
}) => {
const blueprintName = useAppSelector(selectBlueprintName);
const blueprintDescription = useAppSelector(selectBlueprintDescription);
return (
<Form>
<Title headingLevel="h1" size="xl">
Review
Review {blueprintName} blueprint
</Title>
{blueprintDescription && <Text>{blueprintDescription}</Text>}
{/* Intentional prop drilling for simplicity - To be removed */}
<Review snapshottingEnabled={snapshottingEnabled} />
</Form>