Replace tos_url with tc_url for accurate naming

This commit is contained in:
Vlad Olaru 2023-06-19 14:32:57 +03:00
parent 66b3106def
commit 5e1b6a71f4
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ interface Props {
const Banner: React.FC< Props > = ( { isSubmitted, handleSetup } ) => { const Banner: React.FC< Props > = ( { isSubmitted, handleSetup } ) => {
const { first_name } = getAdminSetting( 'currentUserData', {} ); const { first_name } = getAdminSetting( 'currentUserData', {} );
const { description, cta_label, tos_url } = getAdminSetting( const { description, cta_label, tc_url } = getAdminSetting(
'wcpayWelcomePageIncentive' 'wcpayWelcomePageIncentive'
); );
@ -65,7 +65,7 @@ const Banner: React.FC< Props > = ( { isSubmitted, handleSetup } ) => {
{ strings.noThanks } { strings.noThanks }
</Button> </Button>
<p>{ strings.TosAndPp }</p> <p>{ strings.TosAndPp }</p>
<p>{ strings.termsAndConditions( tos_url ) }</p> <p>{ strings.termsAndConditions( tc_url ) }</p>
</CardBody> </CardBody>
<CardDivider /> <CardDivider />
<CardBody className="woopayments-welcome-page__payments"> <CardBody className="woopayments-welcome-page__payments">

View File

@ -31,7 +31,7 @@ declare global {
id: string; id: string;
description: string; description: string;
cta_label: string; cta_label: string;
tos_url: string; tc_url: string;
}; };
}; };
}; };