Socket
Book a DemoInstallSign in
Socket

@eduzz/nps-react

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eduzz/nps-react

Eduzz NPS react component

latest
npmnpm
Version
1.0.14
Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
Source

Eduzz NPS React

Componente React para realizar o NPS (Net Promoter Score) da Eduzz.

Instalação :wrench:

npm install @eduzz/nps-react
yarn add @eduzz/nps-react

Como usar? :cowboy_hat_face:

import Nps from '@eduzz/nps-react';

<Nps 
  params={{
    key_fields: {
      app: ['eduzz'],
      user_id: 123
    },
    tags: {
      application: 'orbita',
      id: 123,
      email: 'email@example.com',
      name: 'Michael Jackson'
    }
  }} 
/>

API :cloud:

Props

type Apps = 'eduzz' | 'sun' | 'alumy' | 'backoffice' | 'telescope' | 'jobzz' | 'orbita' | 'nutror' | 'blinket';

type SetupParams = {
  key_fields: {
    app: [Apps];
    user_id: number;
  };
  tags?: Record<any, any>;
  /**
   * Defaults to 'https://nps.eduzz.com' 
   */
  endpoint?: string;
}

Desenvolvendo :computer:

Para rodar o projeto localmente é bem simples:

// para instalar as dependências
yarn

// inicia o storybook
yarn dev

FAQs

Package last updated on 22 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts