Skip to content

Commit 9d3c56c

Browse files
authored
feat(onboarding-ui): add optional description to InformationPage (#674)
1 parent 64dfd3c commit 9d3c56c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/onboarding-ui/src/pages/InformationPage/InformationPage.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Box, Margins } from '@rocket.chat/fuselage';
2-
import type { ReactElement } from 'react';
2+
import type { ReactElement, ReactNode } from 'react';
33

44
import BackgroundLayer from '../../common/BackgroundLayer';
55
import { OnboardingLogo } from '../../common/OnboardingLogo';
66

77
type InformationPageProps = {
88
title: string;
9-
description: string;
9+
description?: ReactNode;
1010
};
1111

1212
const InformationPage = ({
@@ -31,7 +31,7 @@ const InformationPage = ({
3131
{title}
3232
</Box>
3333

34-
<Box fontScale='p1'>{description}</Box>
34+
{description && <Box fontScale='p1'>{description}</Box>}
3535
</Margins>
3636
</Box>
3737
</BackgroundLayer>

0 commit comments

Comments
 (0)