1.1.0 • Published 4 years ago
@ignitesales/social-share-sms v1.1.0
Share SMS | Ignite Neuro
Used for sharing guide results via SMS in the Ignite Neuro application
##Components
ShareViaSms
This is the core component used for the email functionality. The following props are used for the core ShareViaSms component:
Name | Type | Default | Description |
---|---|---|---|
className | string | '' | Additional CSS class for the components root DOM node. The default class is shareViaSms |
onSubmit | Function | NoOp | Call back function once the email is submitted |
sendTextMessage | Function | NoOp | Function that should send the text message |
ConnectedShareViaSms Properties
This is the connected component used in conjuction with the Nuero application. It uses the ShareViaSms component and automatically passes the following props down:
- sendTextMessage
The following props are used for the ConnectedShareViaSms component (in addition to the props from ShareViaSms component):
Name | Type | Default | Description |
---|---|---|---|
hasBeenClicked | boolean | false | If true, this will trigger the "actionStarted" function |
Development
npm install
npm start
License
MIT License. Copyright © 2019 Ignite Sales