Make fields of AiUpsellCard
private (#36888)
This PR makes the fields of the `AiUpsellCard` private, for better encapsulation. Release Notes: - N/A
This commit is contained in:
parent
5c346a4ccf
commit
2e1ca47241
2 changed files with 17 additions and 16 deletions
|
@ -283,17 +283,13 @@ pub(crate) fn render_ai_setup_page(
|
|||
v_flex()
|
||||
.mt_2()
|
||||
.gap_6()
|
||||
.child({
|
||||
let mut ai_upsell_card =
|
||||
AiUpsellCard::new(client, &user_store, user_store.read(cx).plan(), cx);
|
||||
|
||||
ai_upsell_card.tab_index = Some({
|
||||
tab_index += 1;
|
||||
tab_index - 1
|
||||
});
|
||||
|
||||
ai_upsell_card
|
||||
})
|
||||
.child(
|
||||
AiUpsellCard::new(client, &user_store, user_store.read(cx).plan(), cx)
|
||||
.tab_index(Some({
|
||||
tab_index += 1;
|
||||
tab_index - 1
|
||||
})),
|
||||
)
|
||||
.child(render_llm_provider_section(
|
||||
&mut tab_index,
|
||||
workspace,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue