Skip to content

Commit 18fe4c2

Browse files
Fix: Storybook Links in V8 README (#858)
* fix storybook links in v8 readme * chore: add changeset
1 parent 002218e commit 18fe4c2

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

.changeset/late-times-feel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@paypal/react-paypal-js": patch
3+
---
4+
5+
Fixes broken README links to storybook examples.

packages/react-paypal-js/README-v8.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<a href="https://bundlephobia.com/result?p=@paypal/react-paypal-js"><img src="https://img.shields.io/bundlephobia/minzip/@paypal/react-paypal-js.svg?style=flat-square" alt="bundle size"></a>
1414
<a href="https://www.npmtrends.com/@paypal/react-paypal-js"><img src="https://img.shields.io/npm/dm/@paypal/react-paypal-js.svg?style=flat-square" alt="npm downloads"></a>
1515
<a href="https://github.com/paypal/react-paypal-js/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/@paypal/react-paypal-js.svg?style=flat-square" alt="apache license"></a>
16-
<a href="https://paypal.github.io/react-paypal-js/"><img src="https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg" alt="storybook"></a>
16+
<a href="https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook"><img src="https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg" alt="storybook"></a>
1717
</div>
1818

1919
## Why use react-paypal-js?
@@ -31,14 +31,14 @@ React developers think in terms of components and not about loading external scr
3131
**Features**
3232

3333
- Enforce async loading the JS SDK upfront so when it's time to render the buttons to your buyer, they render immediately.
34-
- Abstract away the complexity around loading the JS SDK with the global [PayPalScriptProvider](https://paypal.github.io/react-paypal-js/?path=/docs/example-paypalscriptprovider--default) component.
34+
- Abstract away the complexity around loading the JS SDK with the global [PayPalScriptProvider](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/example-paypalscriptprovider--default) component.
3535
- Support dispatching actions to reload the JS SDK and re-render components when global parameters like `currency` change.
3636
- Easy to use components for all the different Braintree/PayPal product offerings:
37-
- [PayPalButtons](https://paypal.github.io/react-paypal-js/?path=/docs/example-paypalbuttons--default)
38-
- [PayPalMarks](https://paypal.github.io/react-paypal-js/?path=/docs/example-paypalmarks--default)
39-
- [PayPalMessages](https://paypal.github.io/react-paypal-js/?path=/docs/example-paypalmessages--default)
40-
- [PayPalHostedFields](https://paypal.github.io/react-paypal-js/?path=/docs/paypal-paypalhostedfields--default)
41-
- [BraintreePayPalButtons](https://paypal.github.io/react-paypal-js/?path=/docs/braintree-braintreepaypalbuttons--default)
37+
- [PayPalButtons](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/example-paypalbuttons--default)
38+
- [PayPalMarks](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/example-paypalmarks--default)
39+
- [PayPalMessages](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/example-paypalmessages--default)
40+
- [PayPalHostedFields](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/paypal-paypalhostedfields--default)
41+
- [BraintreePayPalButtons](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/braintree-braintreepaypalbuttons--default)
4242

4343
## Installation
4444

@@ -105,7 +105,7 @@ Use the optional PayPalScriptProvider `deferLoading` prop to control when the JS
105105
</PayPalScriptProvider>
106106
```
107107

108-
To learn more, check out the [defer loading example in storybook](https://paypal.github.io/react-paypal-js/?path=/story/example-paypalscriptprovider--default&args=deferLoading:true).
108+
To learn more, check out the [defer loading example in storybook](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/example-paypalscriptprovider--default&args=deferLoading:true).
109109

110110
#### Tracking loading state
111111

@@ -131,7 +131,7 @@ return (
131131
);
132132
```
133133

134-
To learn more, check out the [loading spinner example in storybook](https://paypal.github.io/react-paypal-js/?path=/story/example-paypalbuttons--default&args=showSpinner:true).
134+
To learn more, check out the [loading spinner example in storybook](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/example-paypalbuttons--default&args=showSpinner:true).
135135

136136
#### Reloading when parameters change
137137

@@ -164,11 +164,11 @@ return (
164164
);
165165
```
166166

167-
To learn more, check out the [dynamic currency example in storybook](https://paypal.github.io/react-paypal-js/?path=/docs/example-paypalbuttons--default).
167+
To learn more, check out the [dynamic currency example in storybook](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/example-paypalbuttons--with-dynamic-order-state).
168168

169169
### PayPalButtons
170170

171-
The `<PayPalButtons />` component is [documented in Storybook](https://paypal.github.io/react-paypal-js/?path=/docs/example-paypalbuttons--default).
171+
The `<PayPalButtons />` component is [documented in Storybook](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/example-paypalbuttons--default).
172172

173173
Here's an example:
174174

@@ -226,7 +226,7 @@ export default function App() {
226226
}
227227
```
228228

229-
To learn more about other available props, see the [PayPalButtons](https://paypal.github.io/react-paypal-js/?path=/docs/example-paypalbuttons--default) docs.
229+
To learn more about other available props, see the [PayPalButtons](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/example-paypalbuttons--default) docs.
230230

231231
### BraintreePayPalButtons
232232

@@ -270,7 +270,7 @@ export default function App() {
270270
}
271271
```
272272

273-
Check out the docs page for the [BraintreePayPalButtons](https://paypal.github.io/react-paypal-js/?path=/docs/braintree-braintreepaypalbuttons--default) to learn more about the available props.
273+
Check out the docs page for the [BraintreePayPalButtons](https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/?path=/story/braintree-braintreepaypalbuttons--default) to learn more about the available props.
274274

275275
### PayPal Hosted Fields
276276

packages/react-paypal-js/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="https://bundlephobia.com/result?p=@paypal/react-paypal-js"><img src="https://img.shields.io/bundlephobia/minzip/@paypal/react-paypal-js.svg?style=flat-square" alt="bundle size"></a>
99
<a href="https://www.npmtrends.com/@paypal/react-paypal-js"><img src="https://img.shields.io/npm/dm/@paypal/react-paypal-js.svg?style=flat-square" alt="npm downloads"></a>
1010
<a href="https://github.com/paypal/react-paypal-js/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/@paypal/react-paypal-js.svg?style=flat-square" alt="apache license"></a>
11-
<a href="https://paypal.github.io/paypal-js/web-sdk-v5-react-storybook/"><img src="https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg" alt="storybook"></a>
11+
<a href="https://paypal.github.io/paypal-js/web-sdk-v6-react-storybook/"><img src="https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg" alt="storybook"></a>
1212
</div>
1313

1414
---
@@ -52,7 +52,7 @@ Integrating PayPal into React applications requires careful handling of SDK scri
5252
## Resources
5353

5454
- [PayPal V6 SDK Documentation](https://docs.paypal.ai/payments/methods/paypal/sdk/js/v6/paypal-checkout)
55-
- [React Sample Integration](https://github.com/paypal-examples/v6-web-sdk-sample-integration/tree/main/client/prebuiltPages/react/oneTimePayment) - Full working example with Node.js backend
55+
- [React Sample Integration](https://github.com/paypal-examples/v6-web-sdk-sample-integration/tree/main/client/prebuiltPages/react) - Full working example with Node.js backend
5656
- [Live Demo](https://v6-web-sdk-sample-integration-server.fly.dev/client/prebuiltPages/react/oneTimePayment/dist/index.html) - Try the sample integration in sandbox mode
5757
- [PayPal Server SDK](https://www.npmjs.com/package/@paypal/paypal-server-sdk) - For backend integration
5858
- [PayPal Developer Dashboard](https://developer.paypal.com/dashboard/)

0 commit comments

Comments
 (0)