chore: remove fragment

This commit is contained in:
Mark Kaylor 2025-07-08 11:07:41 +02:00
parent 590c24ce65
commit 8ed7454f69

View File

@ -100,17 +100,15 @@ const createStepComponents = (tourName: ValidTourName): Step => ({
}, },
Content: (props) => ( Content: (props) => (
<> <Box paddingBottom={5} paddingLeft={5} paddingRight={5} width="100%">
<Box paddingBottom={5} paddingLeft={5} paddingRight={5} width="100%"> {'children' in props ? (
{'children' in props ? ( props.children
props.children ) : (
) : ( <Typography tag="div" variant="omega">
<Typography tag="div" variant="omega"> <FormattedMessage tagName="p" id={props.id} defaultMessage={props.defaultMessage} />
<FormattedMessage tagName="p" id={props.id} defaultMessage={props.defaultMessage} /> </Typography>
</Typography> )}
)} </Box>
</Box>
</>
), ),
Actions: ({ showStepCount = true, showSkip = false, to, ...props }) => { Actions: ({ showStepCount = true, showSkip = false, to, ...props }) => {