Skip to content

Commit

Permalink
fix(condo): Doma-10475 spp banners fix (#5521)
Browse files Browse the repository at this point in the history
* fix(condo): DOMA-10475 fix banners after QA tests

* fix(condo): DOMA-10475 fix banners after QA tests
  • Loading branch information
dkoviazin authored Nov 21, 2024
1 parent 174e9c3 commit 6cb740b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ import { IFrame } from '@condo/domains/miniapp/components/IFrame'

type BillingAppPageProps = {
id: string
children?: React.ReactNode
}

export const BillingAppPage: React.FC<BillingAppPageProps> = ({ id }) => {
export const BillingAppPage: React.FC<BillingAppPageProps> = ({ id, children }) => {
const intl = useIntl()
const FallbackPageTitle = intl.formatMessage({ id: 'global.section.miniapps' })

Expand Down Expand Up @@ -47,6 +48,7 @@ export const BillingAppPage: React.FC<BillingAppPageProps> = ({ id }) => {
<title>{appName || FallbackPageTitle}</title>
</Head>
<PageWrapper>
{children}
<PageHeader title={<Typography.Title level={1}>{appName || FallbackPageTitle}</Typography.Title>} spaced/>
<PageContent>
{appUrl && (
Expand Down
5 changes: 2 additions & 3 deletions apps/condo/pages/service-provider-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ const ServiceProviderProfilePage: PageType = () => {

if (sppConfig && 'BillingIntegrationId' in sppConfig && isSPPOrg) {
return (
<>
<BillingAppPage id={sppConfig.BillingIntegrationId}>
{GlobalHints}
<BillingAppPage id={sppConfig.BillingIntegrationId}/>
</>
</BillingAppPage>
)
}

Expand Down

0 comments on commit 6cb740b

Please sign in to comment.