fix: enable yearly team pricing (#1199)

## Description

**Pending testing on preview**

Enable yearly team pricing during checkout.

## Changes Made

- Enable selecting yearly team pricing during checkout
- Update pricing on marketing to $480 for yearly team plan

## Testing Performed

- Stripe simulations

Pending manual testing


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Updated the savings message in the pricing table to reflect new
savings amounts.
  - Adjusted yearly pricing from $500 to $480.
  - Modified user addition costs based on subscription periods.

- **Improvements**
- Simplified button text in the Create Team Checkout Dialog to
consistently display "Checkout".

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
David Nguyen
2024-06-27 15:36:33 +10:00
committed by GitHub
parent e2055e50df
commit d1a53544c1
2 changed files with 6 additions and 5 deletions

View File

@ -158,7 +158,6 @@ export const CreateTeamCheckoutDialog = ({
<Button
type="submit"
disabled={selectedPrice.interval === 'yearly'}
loading={isCreatingCheckout}
onClick={async () =>
createCheckout({
@ -167,7 +166,7 @@ export const CreateTeamCheckoutDialog = ({
})
}
>
{selectedPrice.interval === 'monthly' ? 'Checkout' : 'Coming soon'}
Checkout
</Button>
</DialogFooter>
</div>