@financial-times/spark-push-notification
v2.3.0
Published
Spark Push Notification component
Downloads
37
Maintainers
Keywords
Readme
spark-push-notification
This repo abstract away the code required for spark push notification so that functionality can be shared across the spark estate
This repo has a storybook. To run it locally you can run yarn workspace @financial-time/spark-push-notification storybook
How to use
yarn add @financial-times/spark-push-notification // with yarn
npm i @financial-times/spark-push-notification // with npm
and use it like:
import { PushButtonWithOverlay, PushButton } from @financial-times/spark-push-notification
<PushButtonWithOverlay articleId={articleStore.articleId}>
<Button data-trackable="send-push">
Send push
</Button>
</PushButtonWithOverlay>
Development
This repo uses lerna under the hood for the publication flows. It also uses yarn workspaces to manage packages internally.
How to publish
- Make changes to the source
- Test changes in Spark - they'll be shown in your development site
- Increment the version number in package.json
- When a pull request containing your changes is merged, CircleCI will automatically publish your packages