@dogoo2/do-notifications
v1.0.10
Published
Notificaion library for dogoo office
Downloads
7
Readme
@dogoo/do-notifications
Notificaion library for dogoo office
Install
npm install --save @dogoo2/do-notificationsUsage
import React, { Component } from 'react'
import DoNotify from '@dogoo2/do-notifications'
import '@dogoo2/do-notifications/dist/index.scss'
import { DoNotify } from "./index";
class Example extends Component {
render() {
return <DoNotify
data={data}
refetch={refetch}
darkMode={darkMode}
lang={lang}
changeStatus={changeStatus}
category={category}
getButtonProcess={getButtonProcess}
buttonAction={buttonAction}
noRead={noRead}
handleSeenAll={handleSeenAll}
/>
}
}- props
- data: notification data
- refetch: refetch function
- changeStatus: change notification status function
- category: notification category
- getButtonProcess: get button process function
- buttonAction: button action function
- noRead: number of unread notifications
- handleSeenAll: handle seen all notify function
License
MIT © sonpt
