Skip to content

Commit

Permalink
📝 Updating react-sdk documentation (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: burnedchris <christopher@everfund.com>
  • Loading branch information
Simon Grimshaw and BurnedChris authored Aug 9, 2023
1 parent d51325a commit f021afa
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 27 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ jobs:
run: pnpm install

- name: Run tests
run: pnpm test
run: pnpm test

- name: Run linter
run: pnpm lint
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ At Everfund, we strive to create an inclusive and welcoming environment for all

To ensure a productive and respectful experience for everyone involved, we have established a few ground rules.

Please review our [Code of Conduct](https://github.com/everfund/everfund/blob/docs/CODE_OF_CONDUCT.md) before getting started.
Please review our [Code of Conduct](https://github.com/everfund/everfund/blob/CODE_OF_CONDUCT.md) before getting started.

If you're new to the project, you may want to start with one of our designated ["good first issues"](https://github.com/everfund/everfund/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+First+Issue%22) These issues are specifically chosen to be accessible and easy to understand, making them a great introduction to the project.

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/js-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ At Everfund, we strive to create an inclusive and welcoming environment for all
To ensure a productive and respectful experience for everyone involved, we have established a few ground rules.
Please review our [Code of Conduct](https://github.com/everfund/everfund/blob/docs/CODE_OF_CONDUCT.md) before getting started.
Please review our [Code of Conduct](https://github.com/everfund/everfund/blob/CODE_OF_CONDUCT.md) before getting started.
If you're new to the project, you may want to start with one of our designated ["good first issues"](https://github.com/everfund/everfund/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+First+Issue%22) These issues are specifically chosen to be accessible and easy to understand, making them a great introduction to the project.
Expand All @@ -156,7 +156,7 @@ Together, let's build something amazing!
`@everfund/js-sdk` is provided **"as is"** without any **warranty**. Use at your own risk.
_For more information and to report security issues, please refer to our [security documentation](https://github.com/everfund/everfund/blob/main/docs/SECURITY.md)._
_For more information and to report security issues, please refer to our [security documentation](https://github.com/everfund/everfund/blob/main/SECURITY.md)._
## License
Expand Down
25 changes: 2 additions & 23 deletions packages/react-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,6 @@ yarn add @everfund/react-sdk
npm install @everfund/react-sdk
```

```js
import everfund from '@everfund/react-sdk';

document?.getElementById('donate-modal')?.addEventListener('click', () => {
console.log('launch Everfund Modal');
everfund.donationWidget({
code: '078f',
onSuccess: function (onSuccessPayload) {
console.log(onSuccessPayload);
},
onFailure: function (error) {
console.log(error);
},
onClose: function () {
//
console.log('Closed Modal');
},
});
});
```
## Usage

```jsx
Expand Down Expand Up @@ -117,7 +96,7 @@ At Everfund, we strive to create an inclusive and welcoming environment for all

To ensure a productive and respectful experience for everyone involved, we have established a few ground rules.

Please review our [Code of Conduct](https://github.com/everfund/everfund/blob/docs/CODE_OF_CONDUCT.md) before getting started.
Please review our [Code of Conduct](https://github.com/everfund/everfund/blob/CODE_OF_CONDUCT.md) before getting started.

If you're new to the project, you may want to start with one of our designated ["good first issues"](https://github.com/everfund/everfund/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+First+Issue%22) These issues are specifically chosen to be accessible and easy to understand, making them a great introduction to the project.

Expand All @@ -129,7 +108,7 @@ Together, let's build something amazing!

`@everfund/react-sdk` is provided **"as is"** without any **warranty**. Use at your own risk.

_For more information and to report security issues, please refer to our [security documentation](https://github.com/everfund/everfund/blob/main/docs/SECURITY.md)._
_For more information and to report security issues, please refer to our [security documentation](https://github.com/everfund/everfund/blob/main/SECURITY.md)._

## License

Expand Down

0 comments on commit f021afa

Please sign in to comment.