Skip to content

Commit

Permalink
fix: Actually send emails to team members when invited in onboarding (#…
Browse files Browse the repository at this point in the history
…19298)

fix the invite team member step in onboarding

Co-authored-by: Bianca Yang <[email protected]>
  • Loading branch information
xrdt and Bianca Yang authored Dec 12, 2023
1 parent 5d1ed0b commit 2a4be26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/scenes/onboarding/OnboardingInviteTeammates.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useValues } from 'kea'
import { useActions, useValues } from 'kea'
import { PhonePairHogs } from 'lib/components/hedgehogs'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
import { inviteLogic } from 'scenes/settings/organization/inviteLogic'
import { InviteTeamMatesComponent } from 'scenes/settings/organization/InviteModal'

import { ProductKey } from '~/types'
Expand All @@ -11,6 +12,7 @@ import { OnboardingStep } from './OnboardingStep'
export const OnboardingInviteTeammates = ({ stepKey }: { stepKey: OnboardingStepKey }): JSX.Element => {
const { preflight } = useValues(preflightLogic)
const { product } = useValues(onboardingLogic)
const { inviteTeamMembers } = useActions(inviteLogic)

const titlePrefix = (): string => {
switch (product?.type) {
Expand Down Expand Up @@ -47,6 +49,7 @@ export const OnboardingInviteTeammates = ({ stepKey }: { stepKey: OnboardingStep
title={`${titlePrefix()} better with friends.`}
stepKey={stepKey}
hedgehog={<PhonePairHogs height={120} width={288} />}
continueAction={() => preflight?.email_service_available && inviteTeamMembers()}
>
<div className="mb-6">
<p>
Expand Down

0 comments on commit 2a4be26

Please sign in to comment.