Skip to content

Commit

Permalink
MNTOR-3840 - Add dashboard top banner state (#5399)
Browse files Browse the repository at this point in the history
* MNTOR-3840 - Add dashboard top banner state

* remove invalid state
  • Loading branch information
codemist authored Dec 11, 2024
1 parent 2a3ab7f commit 717d73b
Showing 1 changed file with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,6 @@ export const getUserDashboardState = (
isEligibleForPremium: true,
isPremiumUser: false,
scanInProgress: false,
}) ||
isMatchingContent(contentProps, {
isRelevantGuidedStep: relevantGuidedStep.id === "Scan",
hasExposures: true,
hasUnresolvedBreaches: true,
hasUnresolvedBrokers: true,
isEligibleForFreeScan: false,
isEligibleForPremium: false,
isPremiumUser: true,
scanInProgress: false,
})
) {
return "UsUserNonPremiumWithScanUnresolvedExposures";
Expand Down Expand Up @@ -331,6 +321,24 @@ export const getUserDashboardState = (
isPremiumUser: true,
scanInProgress: false,
}) ||
/**
* - US user
* - Premium
* - Unresolved breaches
* - Scan: Unresolved
*/
isMatchingContent(contentProps, {
isRelevantGuidedStep:
relevantGuidedStep.id === "Scan" ||
relevantGuidedStep.id === "DataBrokerManualRemoval",
hasExposures: true,
hasUnresolvedBreaches: true,
hasUnresolvedBrokers: true,
isEligibleForFreeScan: false,
isEligibleForPremium: false,
isPremiumUser: true,
scanInProgress: false,
}) ||
/**
* - US user
* - Premium
Expand Down

0 comments on commit 717d73b

Please sign in to comment.