1.1.15 • Published 1 year ago
selfguard-react-components v1.1.15
Description
This NPM Module allows you to directly import SelfGuard's pre-built react components. The first one being encrypted notifications.
Installation
npm install selfguard-react-components
Notifications Component
Import Notifications Module
import {Notifications} from 'selfguard-react-components';
Embed
<div>
<Notifications userAddress={address} api_key={API_KEY} />
</div>
Notifications API
Once users have signed up for notifications on your dapp, you will be able to see the list of your users in the SelfGuard dashboard. You can then send them notifications using the following APIS.
Send SMS
await sg.sendSMS({address:'0xadfb..',text:'Example Text'});
Send Email
await sg.sendEmail({address:'0xadfb..',from:'example@test.com',fromName:'test',replyTo:'reply@test.com', reployToName:'test',subject:'Test Subject', html:'This is the content of the email'});
1.1.15
1 year ago
1.1.14
1 year ago
1.1.13
1 year ago
1.1.12
1 year ago
1.1.11
1 year ago
1.1.10
1 year ago
1.1.9
1 year ago
1.1.7
1 year ago
1.1.6
1 year ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago