Skip to content

Commit b149ba9

Browse files
authored
ENG-8039: Pro 25 UI (#1657)
1 parent 73e78dc commit b149ba9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pcweb/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102

103103
# Pricing
104104
PRO_TIERS_TABLE = {
105+
"Pro 25": {"price": 25, "credits": 500},
105106
"Pro 50": {"price": 50, "credits": 1000},
106107
"Pro 100": {"price": 100, "credits": 2000},
107108
"Pro 250": {"price": 250, "credits": 5000},

pcweb/pages/pricing/plan_cards.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SelectedTier(TypedDict):
2424

2525

2626
class ProTierState(rx.State):
27-
credits: rx.Field[int] = rx.field(default=1000)
27+
credits: rx.Field[int] = rx.field(default=PRO_TIERS_TABLE["Pro 25"]["credits"])
2828

2929
@rx.event
3030
def redirect_to_billing(self, yearly: bool = False):
@@ -42,7 +42,7 @@ def selected_tier(self) -> SelectedTier:
4242
for tier_name, tier_data in PRO_TIERS_TABLE.items():
4343
if tier_data["credits"] == self.credits:
4444
return SelectedTier(tier=tier_name, price=tier_data["price"])
45-
return SelectedTier(tier="Pro", price=PRO_TIERS_TABLE["Pro 50"]["price"])
45+
return SelectedTier(tier="Pro 25", price=PRO_TIERS_TABLE["Pro 25"]["price"])
4646

4747

4848
class Feature(NamedTuple):

0 commit comments

Comments
 (0)