-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In PayPalButtons.tsx: Added the disableMaxHeight, borderColor, borderWidth, and borderRadius props to the component's interface. Implemented logic to apply these props to the button's style.
- Loading branch information
Showing
9 changed files
with
504 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@paypal/react-paypal-js": major | ||
"@paypal/paypal-js": major | ||
--- | ||
|
||
Update the Type Definitions: I'll add the disableMaxHeight prop to the typings for the PayPalButtons component in the appropriate TypeScript file. | ||
Modify the Component: I'll implement the logic in the PayPalButtons.tsx file to handle the new disableMaxHeight prop, ensuring it applies the relevant styles. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
"@paypal/react-paypal-js": major | ||
"@paypal/paypal-js": major | ||
--- | ||
|
||
- Updated the `@paypal/react-paypal-js` and `@paypal/paypal-js` packages to improve compatibility and performance. | ||
- Introduced new props for the [PayPalButtons](cci:1://file:///d:/open_source%20contributions/2_OSC/paypal-js/packages/react-paypal-js/src/components/PayPalButtons.tsx:15:0-158:2) component, including `disableMaxHeight`, `borderColor`, `borderWidth`, and `borderRadius`. | ||
|
||
- Enhanced the styling options for the PayPal buttons to allow for custom borders and height settings. | ||
- Improved error handling and eligibility checks for the PayPal buttons rendering. | ||
- Added support for new props to facilitate better customization and control over button rendering. | ||
|
||
- Resolved issues related to button rendering when wrapped in the `PayPalScriptProvider`. | ||
- Fixed context-related errors during testing by ensuring proper usage of hooks and providers. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters