Skip to content

Commit

Permalink
feat(PPDSC-2135): update tabToOpen type
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradbury committed May 20, 2022
1 parent 8f0f989 commit 9a0232d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions site/pages/components/consent-settings-link.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ Custom and required props are detailed below:
<Prop name="ccpa" type="boolean">
If your using the unified sourcepoiont script for CCPA.
</Prop>
<Prop name="tabToOpen" type="string">
If your using the unified sourcepoiont script for GDPR, you can choose the opening view of modal.
<Prop name="tabToOpen" type="'purposes' | 'vendors' | 'features' | 'purposes-li' | 'vendors-li'">
If your using the unified sourcepoiont script for GDPR, you can choose the opening view of the modal.
</Prop>
<Prop name="children" type="ReactNode" default="Manage Consent">
The content of the link. Can be undefined and left to default text.
Expand Down
7 changes: 6 additions & 1 deletion src/consent/consent-settings-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ export interface ConsentSettingsLinkProps extends Omit<LinkProps, 'href'> {
children?: string;
gdpr?: boolean;
ccpa?: boolean;
tabToOpen?: string;
tabToOpen?:
| 'purposes'
| 'vendors'
| 'features'
| 'purposes-li'
| 'vendors-li';
}

export const ConsentSettingsLink: React.FC<ConsentSettingsLinkProps> = ({
Expand Down

0 comments on commit 9a0232d

Please sign in to comment.