1.0.19 • Published 4 years ago

sdk-consent-privacytools v1.0.19

Weekly downloads
15
License
MIT
Repository
-
Last release
4 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

4 years ago

1.0.18

4 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago