From 9a0232dfc0e60026ce9baf89863e854afe473edb Mon Sep 17 00:00:00 2001 From: timbradbury Date: Fri, 20 May 2022 09:34:22 +0100 Subject: [PATCH] feat(PPDSC-2135): update tabToOpen type --- site/pages/components/consent-settings-link.mdx | 4 ++-- src/consent/consent-settings-link.tsx | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/site/pages/components/consent-settings-link.mdx b/site/pages/components/consent-settings-link.mdx index d747ff00ca..721396d8db 100644 --- a/site/pages/components/consent-settings-link.mdx +++ b/site/pages/components/consent-settings-link.mdx @@ -44,8 +44,8 @@ Custom and required props are detailed below: If your using the unified sourcepoiont script for CCPA. - - If your using the unified sourcepoiont script for GDPR, you can choose the opening view of modal. + + If your using the unified sourcepoiont script for GDPR, you can choose the opening view of the modal. The content of the link. Can be undefined and left to default text. diff --git a/src/consent/consent-settings-link.tsx b/src/consent/consent-settings-link.tsx index 1b3afc771a..248b09479c 100644 --- a/src/consent/consent-settings-link.tsx +++ b/src/consent/consent-settings-link.tsx @@ -30,7 +30,12 @@ export interface ConsentSettingsLinkProps extends Omit { children?: string; gdpr?: boolean; ccpa?: boolean; - tabToOpen?: string; + tabToOpen?: + | 'purposes' + | 'vendors' + | 'features' + | 'purposes-li' + | 'vendors-li'; } export const ConsentSettingsLink: React.FC = ({