diff --git a/src/features/FeatureTour/FeatureTourContent.tsx b/src/features/FeatureTour/FeatureTourContent.tsx index b34f95474..771f06c65 100644 --- a/src/features/FeatureTour/FeatureTourContent.tsx +++ b/src/features/FeatureTour/FeatureTourContent.tsx @@ -6,20 +6,21 @@ export const HeroOptionsFeatureTourContent = (): JSX.Element => { return ( <> New feature - + {" "} Now you can customise your hero banner with various layouts!{" "} - + {`We've added some variations to how you can display your hero section. Try them out here.`} diff --git a/src/features/FeatureTour/FeatureTourTooltip.tsx b/src/features/FeatureTour/FeatureTourTooltip.tsx index 7051c6f0e..8b901a9b1 100644 --- a/src/features/FeatureTour/FeatureTourTooltip.tsx +++ b/src/features/FeatureTour/FeatureTourTooltip.tsx @@ -34,6 +34,29 @@ export const FeatureTourTooltip = ({ }: FeatureTourTooltipProps): JSX.Element => { const { paginationCallback } = useFeatureTourContext() const showProgressIndicator = size > 1 + + let titleComponent: React.ReactNode + if (typeof step.title === "string") { + titleComponent = ( + + {step.title} + + ) + } else { + titleComponent = step.title + } + + let contentComponent: React.ReactNode + if (typeof step.content === "string") { + contentComponent = ( + + {step.content} + + ) + } else { + contentComponent = step.content + } + return ( )} - - {step.title} - - - {step.content} - + {titleComponent} + {contentComponent} +