Skip to content

Commit

Permalink
change banner to warning type
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianca Yang committed Nov 20, 2023
1 parent 5483837 commit 3ab685b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/scenes/billing/billingLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ export const billingLogic = kea<billingLogicType>([
const currentPlan = product.plans.find((plan) => plan.current_plan)
if (currentPlan?.initial_billing_limit) {
alerts.push({
status: 'info',
title: 'Billing Limit Applied',
message: `Automatically added a $${currentPlan?.initial_billing_limit} billing limit for ${product.name}`,
status: 'warning',
title: 'Billing Limit Automatically Applied',
message: `To protect your and our costs, we've automatically applied a $${currentPlan?.initial_billing_limit} billing limit for ${product.name}.`,
action: {
onClick: () => {
const element: HTMLElement = document.body.querySelector(
Expand All @@ -183,6 +183,7 @@ export const billingLogic = kea<billingLogicType>([
})
}
})
// There should only be one product being upgraded at a time.
return alerts.length ? alerts[0] : undefined
}
if (!billing || !preflight?.cloud) {
Expand Down

0 comments on commit 3ab685b

Please sign in to comment.