Skip to content

Commit

Permalink
feat: allow users to dismiss usage-limit-approaching banners (#20560)
Browse files Browse the repository at this point in the history
allow users to dismiss usage-limit-approaching banners
  • Loading branch information
xrdt authored Feb 29, 2024
1 parent dbb3c09 commit 44d398b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/scenes/billing/billingLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,13 @@ export const billingLogic = kea<billingLogicType>([
)}% of your ${
productApproachingLimit.usage_key && productApproachingLimit.usage_key.toLowerCase()
} allocation.`,
dismissKey: 'usage-limit-approaching',
}
}

lemonBannerLogic({ dismissKey: 'usage-limit-approaching' }).mount()
lemonBannerLogic({ dismissKey: 'usage-limit-approaching' }).actions.resetDismissKey()
lemonBannerLogic({ dismissKey: 'usage-limit-approaching' }).unmount()
},
],
}),
Expand Down

0 comments on commit 44d398b

Please sign in to comment.