component preview: Fix Zed AI onboarding young account preview (#34783)

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner 2025-07-20 18:27:18 +02:00 committed by GitHub
parent 5f92ac25a7
commit 2e41e312ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -339,16 +339,18 @@ impl Component for ZedAiOnboarding {
plan: Option<proto::Plan>, plan: Option<proto::Plan>,
account_too_young: bool, account_too_young: bool,
) -> AnyElement { ) -> AnyElement {
ZedAiOnboarding { div()
sign_in_status, .w(px(800.))
has_accepted_terms_of_service, .child(ZedAiOnboarding {
plan, sign_in_status,
account_too_young, has_accepted_terms_of_service,
continue_with_zed_ai: Arc::new(|_, _| {}), plan,
sign_in: Arc::new(|_, _| {}), account_too_young,
accept_terms_of_service: Arc::new(|_, _| {}), continue_with_zed_ai: Arc::new(|_, _| {}),
} sign_in: Arc::new(|_, _| {}),
.into_any_element() accept_terms_of_service: Arc::new(|_, _| {}),
})
.into_any_element()
} }
Some( Some(
@ -366,7 +368,7 @@ impl Component for ZedAiOnboarding {
), ),
single_example( single_example(
"Account too young", "Account too young",
onboarding(SignInStatus::SignedIn, false, None, true), onboarding(SignInStatus::SignedIn, true, None, true),
), ),
single_example( single_example(
"Free Plan", "Free Plan",