We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64dfd3c commit 9d3c56cCopy full SHA for 9d3c56c
packages/onboarding-ui/src/pages/InformationPage/InformationPage.tsx
@@ -1,12 +1,12 @@
1
import { Box, Margins } from '@rocket.chat/fuselage';
2
-import type { ReactElement } from 'react';
+import type { ReactElement, ReactNode } from 'react';
3
4
import BackgroundLayer from '../../common/BackgroundLayer';
5
import { OnboardingLogo } from '../../common/OnboardingLogo';
6
7
type InformationPageProps = {
8
title: string;
9
- description: string;
+ description?: ReactNode;
10
};
11
12
const InformationPage = ({
@@ -31,7 +31,7 @@ const InformationPage = ({
31
{title}
32
</Box>
33
34
- <Box fontScale='p1'>{description}</Box>
+ {description && <Box fontScale='p1'>{description}</Box>}
35
</Margins>
36
37
</BackgroundLayer>
0 commit comments