1.0.19 • Published 3 years ago

sdk-consent-privacytools v1.0.19

Weekly downloads
15
License
MIT
Repository
-
Last release
3 years ago

sdk-consent-privacytools

Consent Management Utility for the PrivacyTools platform

NPM JavaScript Style Guide

Install

npm install --save sdk-consent-privacytools

Usage

Using the Consent Pop Up

import React, { Component } from 'react'

import { ConsentPopUp } from 'sdk-consent-privacytools'

class Example extends Component {
  render() {
    return (
      <ConsentPopUp
          base={'<base_url>'}
          hashTemplate={'<hash_template>'}
          hashUser={'<user_hash>'}
          closePopup={() => {}}
        />
    );
  }
}

Using the Consent Wrapper to create your own custom UI

import React, { Component } from 'react'

import { ConsentWrapper } from 'sdk-consent-privacytools'

class Example extends Component {
  render() {
    return (
      <ConsentWrapper
          base={'<base_url>'}
          hashTemplate={'<hash_template>'}
        >
          {
            (loading, error, data) => {
              return (
                <div>
                {
                  //your custom component
                }
                </div>>
              );
            }
          }
        </ConsentWrapper>
    );
  }
}

License

PrivacyTools.com.br

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago