kupos-ui-components-lib 10.1.9 → 10.1.10
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/ui/OfferBanner.js +3 -2
- package/package.json +1 -1
- package/src/ui/OfferBanner.tsx +4 -3
package/dist/ui/OfferBanner.js
CHANGED
|
@@ -25,7 +25,8 @@ const NewUiOfferBanner = ({ offerText, isLoggedIn, showLoginModal, showLoginOpti
|
|
|
25
25
|
truncateOfferText(offerText),
|
|
26
26
|
" ",
|
|
27
27
|
!hideRegister &&
|
|
28
|
-
(isLoggedIn && showLoginOption ? null : (
|
|
28
|
+
(isLoggedIn && showLoginOption ? null : ((showLoginOption &&
|
|
29
|
+
React.createElement("span", { onClick: showLoginModal, className: "cursor-pointer" }, "- registro")))),
|
|
29
30
|
" ",
|
|
30
31
|
"\u00A0"),
|
|
31
32
|
" ",
|
|
@@ -75,7 +76,7 @@ const OfferBanner = ({ offerGradient, isSoldOut, serviceItem, isLoggedIn, showLo
|
|
|
75
76
|
return (React.createElement("div", { className: `text-white w-full absolute ${coachKey ? "-bottom-[29px]" : "-bottom-[40px]"} rounded-b-[14px] text-[14px] h-[58px] flex items-end pb-[7px]`, style: {
|
|
76
77
|
background,
|
|
77
78
|
opacity: isSoldOut ? 0.5 : 1,
|
|
78
|
-
zIndex: isLinatal ? "-1" : "
|
|
79
|
+
zIndex: isLinatal ? "-1" : "0",
|
|
79
80
|
} },
|
|
80
81
|
React.createElement("div", { className: "flex items-center w-full gap-[20px] px-[15px] justify-between" },
|
|
81
82
|
React.createElement("div", { className: "flex items-center justify-start" }, renderLeftContent()),
|
package/package.json
CHANGED
package/src/ui/OfferBanner.tsx
CHANGED
|
@@ -98,7 +98,7 @@ const NewUiOfferBanner: React.FC<NewUiOfferBannerProps> = ({
|
|
|
98
98
|
showLoginModal,
|
|
99
99
|
showLoginOption,
|
|
100
100
|
getAnimationIcon,
|
|
101
|
-
|
|
101
|
+
hideRegister,
|
|
102
102
|
}) => (
|
|
103
103
|
<div className="flex items-center">
|
|
104
104
|
<AnimationIcon getAnimationIcon={getAnimationIcon} name="bombAnimation" />
|
|
@@ -110,9 +110,10 @@ const NewUiOfferBanner: React.FC<NewUiOfferBannerProps> = ({
|
|
|
110
110
|
{truncateOfferText(offerText)}{" "}
|
|
111
111
|
{!hideRegister &&
|
|
112
112
|
(isLoggedIn && showLoginOption ? null : (
|
|
113
|
+
(showLoginOption &&
|
|
113
114
|
<span onClick={showLoginModal} className="cursor-pointer">
|
|
114
115
|
- registro
|
|
115
|
-
</span>
|
|
116
|
+
</span>)
|
|
116
117
|
))}{" "}
|
|
117
118
|
|
|
118
119
|
</span>{" "}
|
|
@@ -257,7 +258,7 @@ const OfferBanner: React.FC<OfferBannerProps> = ({
|
|
|
257
258
|
style={{
|
|
258
259
|
background,
|
|
259
260
|
opacity: isSoldOut ? 0.5 : 1,
|
|
260
|
-
zIndex: isLinatal ? "-1" : "
|
|
261
|
+
zIndex: isLinatal ? "-1" : "0",
|
|
261
262
|
}}
|
|
262
263
|
>
|
|
263
264
|
<div className="flex items-center w-full gap-[20px] px-[15px] justify-between">
|