@kumori/aurora-wui-components 0.0.310-dev4563 → 0.0.310-dev4563.1
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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14724,10 +14724,10 @@ function groupCallToActionNotifications(notifications) {
|
|
|
14724
14724
|
return [...groups.values()];
|
|
14725
14725
|
}
|
|
14726
14726
|
function buildCtaButtons(notification, dispatch) {
|
|
14727
|
-
return (notification.actions ?? []).map((action) => ({
|
|
14727
|
+
return (notification.actions ?? []).map((action, index) => ({
|
|
14728
14728
|
label: action.label,
|
|
14729
|
-
variant: BUTTON_TYPE_TO_VARIANT[action.buttonType] ?? "primary",
|
|
14730
|
-
outline: action.outlined,
|
|
14729
|
+
variant: index === 0 ? BUTTON_TYPE_TO_VARIANT[action.buttonType] ?? "primary" : "primary",
|
|
14730
|
+
outline: index === 0 ? action.outlined : true,
|
|
14731
14731
|
iconName: action.icon,
|
|
14732
14732
|
iconColor: action.iconColor,
|
|
14733
14733
|
onClick: () => dispatch({
|