Skip to content

Commit 16d9dc5

Browse files
authored
Merge pull request #2 from phantomstudios/feat/tweaks
Update README
2 parents f48e48d + 3fa75f8 commit 16d9dc5

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

README.md

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ An all-in-one React library to implement custom Page Sharing Meta and Social Med
88

99
## Introduction
1010

11-
Designed to use and extend [OpenGraph](https://ogp.me/) standards. Alongside, full sharing support to the following social media platforms; ... .
11+
Designed to use and extend [OpenGraph](https://ogp.me/) standards. Alongside, full sharing support to the following social media platforms; Facebook, Linkedin and Twitter.
1212

1313
## Installation
1414

@@ -109,7 +109,7 @@ import { getFacebookUrl } from "@phntms/react-share";
109109
const ShareToFacebook = () => (
110110
<a
111111
href={getFacebookUrl({
112-
url: "https://www.npmjs.com/package/@phntms/react-share",
112+
url: "https://phantom.land/",
113113
})}
114114
>
115115
Share to Facebook
@@ -134,11 +134,7 @@ Basic component example usage:
134134
import { getLinkedinUrl } from "@phntms/react-share";
135135

136136
const ShareToLinkedin = () => (
137-
<a
138-
href={getLinkedinUrl({
139-
url: "https://www.npmjs.com/package/@phntms/react-share",
140-
})}
141-
>
137+
<a href={getLinkedinUrl({ url: "https://phantom.land/" })}>
142138
Share to Linkedin
143139
</a>
144140
);
@@ -161,13 +157,7 @@ Basic component example usage:
161157
import { getTwitterUrl } from "@phntms/react-share";
162158

163159
const ShareToTwitter = () => (
164-
<a
165-
href={getTwitterUrl({
166-
url: "https://www.npmjs.com/package/@phntms/react-share",
167-
})}
168-
>
169-
Share to Twitter
170-
</a>
160+
<a href={getTwitterUrl({ url: "https://phantom.land/" })}>Share to Twitter</a>
171161
);
172162

173163
export default ShareToTwitter;
@@ -180,27 +170,21 @@ If you would rather have all share urls in one place, `getShareUrl()` can be use
180170
Example usage:
181171

182172
```jsx
183-
import { getShareUrl } from "@phntms/react-share";
173+
import { getShareUrl, SocialPlatforms } from "@phntms/react-share";
184174

185175
const Share = () => (
186176
<a
187-
href={getShareUrl(SocialPlatforms.Facebook, {
188-
url: "https://www.npmjs.com/package/@phntms/react-share",
189-
})}
177+
href={getShareUrl(SocialPlatforms.Facebook, {url: "https://phantom.land/" })}
190178
>
191179
Share to Facebook
192180
</a>
193181
<a
194-
href={getShareUrl(SocialPlatforms.Linkedin, {
195-
url: "https://www.npmjs.com/package/@phntms/react-share",
196-
})}
182+
href={getShareUrl(SocialPlatforms.Linkedin, { url: "https://phantom.land/" })}
197183
>
198184
Share to Linkedin
199185
</a>
200186
<a
201-
href={getShareUrl(SocialPlatforms.Twitter, {
202-
url: "https://www.npmjs.com/package/@phntms/react-share",
203-
})}
187+
href={getShareUrl(SocialPlatforms.Twitter, { url: "https://phantom.land/" })}
204188
>
205189
Share to Twitter
206190
</a>

0 commit comments

Comments
 (0)