Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

notifications-provider

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notifications-provider

Componente React para listar notificações do Plurall

  • 2.0.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Plurall Notifications

Componente React para listar notificações do Plurall

Para rodar

yarn install
yarn start

Agora pode abrir localhost:6006 para testar o componente visualmente

Para Buildar

yarn build

Como Usar

  1. Inserir no root da aplicação o provider de notificação
  2. Inserir no root da aplicação o componente
import {
  Notifications,
  NotificationsProvider,
  useNotificationsPublicContext,
  NotificationIcon // caso a prop <Notifications icon={false} /> é possível utiliza o componente trigger <NotificationIcon />
} from '@plurall/notifications'

const {
  setOpen, // function que abre/fecha a central de notificação
  loading, // boolean que indica se o estado da central (requests) está em processo de loading
  badge, // boolean que indica se há novas notificações
  open, // boolean que indica se a central de notificações está aberta
} = useNotificationsPublicContext()

<NotificationsProvider
  // Config API Auth Firebase Token
  msApiURL={'Url da API de comunicações'}
  userToken={'Token do usuário logado'}
  // Config Firebase
  apiKey={'Chave do firebase'}
  authDomain={'Url de auth do firebase'}
  projectId={'Porject ID do firebase'}
  storageBucket={'Chave de config. do firebase'}
  messagingSenderId={'Chave de config. do firebase'}
  appId={'Chave de config. do firebase'}
  measurementId={'Chave de config. do firebase'}
>
  <Notifications />
</NotificationsProvider>

FAQs

Package last updated on 19 Oct 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc