Skip to content

Commit e5fc9e8

Browse files
committed
docs: Refactor readme links and add npm badge
1 parent b3bb3de commit e5fc9e8

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Need a simple modal that just works? `react-simple-hook-modal` is just that!
44

5-
![Publish CI](https://github.com/mbrookson/react-simple-hook-modal/workflows/Publish%20CI/badge.svg?branch=master) ![CI](https://github.com/mbrookson/react-simple-hook-modal/workflows/CI/badge.svg)
5+
![Publish CI][publish] ![CI][ci] [![npm latest][npmBadge]][npmLink]
66

7-
![react-simple-hook-modal](https://github.com/mbrookson/react-simple-hook-modal/blob/master/logo.png)
7+
![react-simple-hook-modal][logo]
88

99
# Installation
1010

@@ -57,10 +57,20 @@ See the `example` directory in the repository for a full example including multi
5757

5858
# Demo
5959

60-
[Click here](https://react-simple-hook-modal.now.sh/) to see a live demo of `react-simple-hook-modal` in action!
60+
[Click here][demo] to see a live demo of `react-simple-hook-modal` in action!
6161

6262
# Issues
6363

6464
If you have any issues, please create an issue here on GitHub.
6565

6666
### Thanks!
67+
68+
[publish]: https://github.com/mbrookson/react-simple-hook-modal/workflows/Publish%20CI/badge.svg?branch=master
69+
[ci]: https://github.com/mbrookson/react-simple-hook-modal/workflows/CI/badge.svg
70+
71+
[npmBadge]: https://img.shields.io/npm/v/react-simple-hook-modal.svg?style=flat-square
72+
[npmLink]: https://npmjs.org/package/react-simple-hook-modal
73+
74+
[logo]: https://raw.githubusercontent.com/mbrookson/react-simple-hook-modal/master/logo.png
75+
76+
[demo]: https://react-simple-hook-modal.now.sh/

0 commit comments

Comments
 (0)