@@ -211,7 +211,7 @@ def total_credits_card() -> rx.Component:
211211 class_name = "flex flex-row gap-2 items-center justify-between" ,
212212 ),
213213 rx .el .div (
214- rx .el .span (
214+ rx .el .span (
215215 rx .cond (
216216 MachineState .recommended_tier_info ["needs_enterprise" ],
217217 rx .el .span (
@@ -236,27 +236,27 @@ def total_credits_card() -> rx.Component:
236236 ),
237237 ),
238238 class_name = "text-center" ,
239- ),
239+ ),
240240 class_name = "flex flex-col gap-2 mt-4 pt-2 justify-center" ,
241241 ),
242242 rx .cond (
243243 MachineState .recommended_tier_info ["needs_enterprise" ],
244- lemcal_dialog (
245- ui .button (
246- "Contact Sales" ,
247- size = "sm" ,
248- class_name = "font-semibold w-full" ,
249- ),
250- ),
251- ui .link (
252- render_ = ui .button (
253- "Upgrade Now" ,
254- size = "sm" ,
255- class_name = "font-semibold w-full" ,
256- ),
257- to = f"{ REFLEX_CLOUD_URL .rstrip ('/' )} /?redirect_url={ REFLEX_CLOUD_URL .rstrip ('/' )} /billing/" ,
258- target = "_blank" ,
259- ),
244+ lemcal_dialog (
245+ ui .button (
246+ "Contact Sales" ,
247+ size = "sm" ,
248+ class_name = "font-semibold w-full" ,
249+ ),
250+ ),
251+ ui .link (
252+ render_ = ui .button (
253+ "Upgrade Now" ,
254+ size = "sm" ,
255+ class_name = "font-semibold w-full" ,
256+ ),
257+ to = f"{ REFLEX_CLOUD_URL .rstrip ('/' )} /?redirect_url={ REFLEX_CLOUD_URL .rstrip ('/' )} /billing/" ,
258+ target = "_blank" ,
259+ ),
260260 ),
261261 class_name = "flex flex-col gap-2" ,
262262 ),
@@ -283,18 +283,18 @@ def messages_card() -> rx.Component:
283283 class_name = "flex flex-row gap-2 items-center" ,
284284 ),
285285 rx .el .div (
286- rx .cond (
287- MachineState .is_enterprise_tier ,
288- rx .el .span (
289- "Custom" ,
290- class_name = "text-secondary-12 lg:text-lg text-base font-medium" ,
291- ),
292- rx .el .span (
293- format_number (MachineState .current_tier ["credits" ]),
294- " Credits" ,
295- class_name = "text-secondary-12 lg:text-lg text-base font-medium font-mono" ,
296- ),
297- ),
286+ rx .cond (
287+ MachineState .is_enterprise_tier ,
288+ rx .el .span (
289+ "Custom" ,
290+ class_name = "text-secondary-12 lg:text-lg text-base font-medium" ,
291+ ),
292+ rx .el .span (
293+ format_number (MachineState .current_tier ["credits" ]),
294+ " Credits" ,
295+ class_name = "text-secondary-12 lg:text-lg text-base font-medium font-mono" ,
296+ ),
297+ ),
298298 class_name = "flex flex-row gap-1.5 items-center" ,
299299 ),
300300 class_name = "flex flex-row gap-2 items-center justify-between" ,
@@ -312,7 +312,7 @@ def messages_card() -> rx.Component:
312312 MachineState .is_enterprise_tier ,
313313 "Custom Messages" ,
314314 f"{ format_number (MachineState .current_tier ['messages' ])} Messages" ,
315- ),
315+ ),
316316 ),
317317 open = message_tooltip_open_cs .value ,
318318 side = "bottom" ,
0 commit comments