mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
fix(billing): do not show auto-renewal banner on aws marketplace onboarding page for private offers
This commit is contained in:
1 parent
e38f55530b
commit
f1ca06f2ea
3 files changed
+27
-16
No files matched your search
+13
-8
@@ -47,12 +47,14 @@ const AwsMarketplaceCreateNewOrg = ({ onboardingInfo }: Props) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
{onboardingInfo && !onboardingInfo.aws_contract_auto_renewal && (
|
||||
<AwsMarketplaceAutoRenewalWarning
|
||||
awsContractEndDate={onboardingInfo.aws_contract_end_date}
|
||||
awsContractSettingsUrl={onboardingInfo.aws_contract_settings_url}
|
||||
/>
|
||||
)}
|
||||
{onboardingInfo &&
|
||||
!onboardingInfo.aws_contract_auto_renewal &&
|
||||
!onboardingInfo.aws_contract_is_private_offer && (
|
||||
<AwsMarketplaceAutoRenewalWarning
|
||||
awsContractEndDate={onboardingInfo.aws_contract_end_date}
|
||||
awsContractSettingsUrl={onboardingInfo.aws_contract_settings_url}
|
||||
/>
|
||||
)}
|
||||
<ScaffoldSection>
|
||||
<ScaffoldSectionDetail className="text-base">
|
||||
<p>
|
||||
@@ -62,8 +64,11 @@ const AwsMarketplaceCreateNewOrg = ({ onboardingInfo }: Props) => {
|
||||
</p>
|
||||
<p>
|
||||
You can read more on billing through AWS in our {''}
|
||||
{/*TODO(thomas): Update docs link once the new docs exist*/}
|
||||
<Link href={`${DOCS_URL}/guides/platform`} target="_blank" className="underline">
|
||||
<Link
|
||||
href={`${DOCS_URL}/guides/platform/aws-marketplace`}
|
||||
target="_blank"
|
||||
className="underline"
|
||||
>
|
||||
Billing Docs.
|
||||
</Link>
|
||||
</p>
|
||||
|
||||
+13
-8
@@ -118,12 +118,14 @@ export const AwsMarketplaceLinkExistingOrg = ({
|
||||
|
||||
return (
|
||||
<>
|
||||
{onboardingInfo && !onboardingInfo.aws_contract_auto_renewal && (
|
||||
<AwsMarketplaceAutoRenewalWarning
|
||||
awsContractEndDate={onboardingInfo.aws_contract_end_date}
|
||||
awsContractSettingsUrl={onboardingInfo.aws_contract_settings_url}
|
||||
/>
|
||||
)}
|
||||
{onboardingInfo &&
|
||||
!onboardingInfo.aws_contract_auto_renewal &&
|
||||
!onboardingInfo.aws_contract_is_private_offer && (
|
||||
<AwsMarketplaceAutoRenewalWarning
|
||||
awsContractEndDate={onboardingInfo.aws_contract_end_date}
|
||||
awsContractSettingsUrl={onboardingInfo.aws_contract_settings_url}
|
||||
/>
|
||||
)}
|
||||
<ScaffoldSection>
|
||||
<ScaffoldSectionDetail className="text-base">
|
||||
<>
|
||||
@@ -136,8 +138,11 @@ export const AwsMarketplaceLinkExistingOrg = ({
|
||||
|
||||
<p>
|
||||
You can read more on billing through AWS in our {''}
|
||||
{/*TODO(thomas): Update docs link once the new docs exist*/}
|
||||
<Link href={`${DOCS_URL}/guides/platform`} target="_blank" className="underline">
|
||||
<Link
|
||||
href={`${DOCS_URL}/guides/platform/aws-marketplace`}
|
||||
target="_blank"
|
||||
className="underline"
|
||||
>
|
||||
Billing Docs.
|
||||
</Link>
|
||||
</p>
|
||||
|
||||
+1
@@ -4679,6 +4679,7 @@ export interface components {
|
||||
CloudMarketplaceOnboardingInfoResponse: {
|
||||
aws_contract_auto_renewal: boolean
|
||||
aws_contract_end_date: string
|
||||
aws_contract_is_private_offer: boolean
|
||||
aws_contract_settings_url: string
|
||||
aws_contract_start_date: string
|
||||
organization_linking_eligibility: {
|
||||
|
||||
Reference in new issue
Block a user