show apns expiration banner in UI for free tier (#40936)

**Related issue:** Resolves #39184

show apns expiration banner for the free tier in the UI. Before it was
limited to show only for premium tier.

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
- [x] QA'd all new/changed functionality manually

---------

Co-authored-by: Nico <32375741+nulmete@users.noreply.github.com>
This commit is contained in:
Gabriel Hernandez
2026-03-04 13:12:33 +00:00
committed by GitHub
co-authored by Nico
parent 744087d2c7
commit b92e9efdb5
2 changed files with 7 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
- Added APNs expiry banner in the UI for fleet free tier.
@@ -57,10 +57,12 @@ const MainContent = ({
// the order of these checks is important. This is the priority order
// for showing banners and only one banner is shown at a time.
if (isPremiumTier) {
if (isApplePnsExpired || willApplePnsExpire) {
banner = <ApplePNCertRenewalMessage expired={isApplePnsExpired} />;
} else if (isAndroidEnterpriseDeleted) {
if (isApplePnsExpired || willApplePnsExpire) {
// APNs expiration banner will show for either premium or free tiers
// but all other banners are only for premium tiers
banner = <ApplePNCertRenewalMessage expired={isApplePnsExpired} />;
} else if (isPremiumTier) {
if (isAndroidEnterpriseDeleted) {
banner = <AndroidEnterpriseDeletedMessage />;
} else if (isAppleBmExpired || willAppleBmExpire) {
banner = <AppleBMRenewalMessage expired={isAppleBmExpired} />;