onboarding: Add young account treatment to AI upsell card (#35785)

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-08-07 10:42:46 -03:00 committed by GitHub
parent 03876d076e
commit e227b5ac30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 139 additions and 75 deletions

View file

@ -286,6 +286,7 @@ pub(crate) fn render_ai_setup_page(
.child(AiUpsellCard {
sign_in_status: SignInStatus::SignedIn,
sign_in: Arc::new(|_, _| {}),
account_too_young: user_store.read(cx).account_too_young(),
user_plan: user_store.read(cx).plan(),
tab_index: Some({
tab_index += 1;