@appcorp/kismaa-web-ui 0.1.70 → 0.1.71
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.
|
@@ -14,9 +14,12 @@ var type_1 = require("../badge/type");
|
|
|
14
14
|
var ratings_1 = require("../ratings");
|
|
15
15
|
var image_1 = __importDefault(require("next/image"));
|
|
16
16
|
var kismaa_utils_1 = require("@appcorp/kismaa-utils");
|
|
17
|
+
var util_functions_1 = require("@react-pakistan/util-functions");
|
|
17
18
|
var UserCard = function (_a) {
|
|
18
19
|
var badges = _a.badges, description = _a.description, handleButtonClick = _a.handleButtonClick, handleCardClick = _a.handleCardClick, id = _a.id, imageAlt = _a.imageAlt, imageSrc = _a.imageSrc, isHovered = _a.isHovered, name = _a.name, onlineStatus = _a.onlineStatus, originalPrice = _a.originalPrice, price = _a.price, rating = _a.rating, setIsHovered = _a.setIsHovered, username = _a.username;
|
|
19
|
-
return (react_1.default.createElement("div", { className: "w-full overflow-hidden rounded-xl shadow-[0px_5px_16px_0px_#0000001A] hover:cursor-pointer lg:max-w-[415px]", onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onClick: function () {
|
|
20
|
+
return (react_1.default.createElement("div", { className: "w-full overflow-hidden rounded-xl shadow-[0px_5px_16px_0px_#0000001A] hover:cursor-pointer lg:max-w-[415px]", onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onClick: function () {
|
|
21
|
+
return handleCardClick("".concat(id).concat(util_functions_1.VALUE_DELIMITER.COLON).concat(username));
|
|
22
|
+
} },
|
|
20
23
|
react_1.default.createElement("div", { className: "relative overflow-hidden rounded-xl" },
|
|
21
24
|
react_1.default.createElement("div", { className: "absolute top-4 right-4 z-10" },
|
|
22
25
|
react_1.default.createElement(active_icon_1.ActiveIcon, { onlineStatus: onlineStatus })),
|