Skip to content

Commit

Permalink
add google ads integration warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MarconLP committed Oct 18, 2024
1 parent f56e4c1 commit 9268c71
Showing 1 changed file with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useActions } from 'kea'
import { LemonBanner } from 'lib/lemon-ui/LemonBanner'

import { HogFunctionInputSchemaType } from '~/types'

Expand All @@ -12,11 +13,21 @@ export type HogFunctionInputIntegrationProps = IntegrationConfigureProps & {
export function HogFunctionInputIntegration({ schema, ...props }: HogFunctionInputIntegrationProps): JSX.Element {
const { persistForUnload } = useActions(hogFunctionConfigurationLogic)
return (
<IntegrationChoice
{...props}
integration={schema.integration}
redirectUrl={`${window.location.pathname}?integration_target=${schema.key}`}
beforeRedirect={() => persistForUnload()}
/>
<>
<IntegrationChoice
{...props}
integration={schema.integration}
redirectUrl={`${window.location.pathname}?integration_target=${schema.key}`}
beforeRedirect={() => persistForUnload()}
/>
{schema.type === 'integration' && schema.integration === 'google-ads' ? (
<LemonBanner type="warning">
<span>
We are still waiting for our Google Ads integration to be approved. You might see a `Google
hasn’t verified this app` warning when trying to connect your account.
</span>
</LemonBanner>
) : null}
</>
)
}

0 comments on commit 9268c71

Please sign in to comment.