Skip to content

Commit

Permalink
feat(onboarding-ui): add optional subtitle prop to OrganizationInfoPa…
Browse files Browse the repository at this point in the history
…ge (#673)
  • Loading branch information
PedroRorato authored Mar 29, 2022
1 parent 40e18d8 commit ce87027
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import type { OrganizationInfoPayload } from '../../forms/OrganizationInfoForm/O

type OrganizationInfoPageProps = {
title?: ReactNode;
description?: string;
subtitle?: ReactNode;
description?: ReactNode;
currentStep: number;
stepCount: number;
organizationTypeOptions: SelectOption[];
Expand All @@ -27,6 +28,7 @@ type OrganizationInfoPageProps = {

const OrganizationInfoPage = ({
title,
subtitle,
description,
...props
}: OrganizationInfoPageProps): ReactElement => {
Expand All @@ -45,7 +47,7 @@ const OrganizationInfoPage = ({
styleProps={pageLayoutStyleProps}
title={title || t('page.organizationInfoPage.title')}
description={description}
subtitle={t('page.organizationInfoPage.subtitle')}
subtitle={subtitle || t('page.organizationInfoPage.subtitle')}
>
<OrganizationInfoForm {...props} />
</FormPageLayout>
Expand Down

0 comments on commit ce87027

Please sign in to comment.