@razorpay/blade 3.5.2 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/components/index.native.js +1 -1
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +4 -0
- package/build/components/index.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/package.json +1 -1
|
@@ -6475,6 +6475,10 @@ var Alert = function Alert(_ref) {
|
|
|
6475
6475
|
isBorderless = _ref$isBorderless === void 0 ? false : _ref$isBorderless,
|
|
6476
6476
|
actions = _ref.actions;
|
|
6477
6477
|
|
|
6478
|
+
if (!(actions !== null && actions !== void 0 && actions.primary) && actions !== null && actions !== void 0 && actions.secondary) {
|
|
6479
|
+
throw new Error('[Blade: Alert]: SecondaryAction is allowed only when PrimaryAction is defined.');
|
|
6480
|
+
}
|
|
6481
|
+
|
|
6478
6482
|
var _useState = useState(true),
|
|
6479
6483
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6480
6484
|
isVisible = _useState2[0],
|