@ludo.ninja/components 2.2.21 → 2.2.23
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.
|
@@ -236,7 +236,7 @@ const OpportunityCard = ({ opportunity, toolsForRemove, }) => {
|
|
|
236
236
|
}));
|
|
237
237
|
const getMediaENVDomain = (0, env_1.useEnvStore)((state) => state.getMediaDomain);
|
|
238
238
|
const isProd = (0, env_1.useEnvStore)((state) => state.isProd);
|
|
239
|
-
return ((0, jsx_runtime_1.jsxs)(SWrapperLink, { href: opportunity.
|
|
239
|
+
return ((0, jsx_runtime_1.jsxs)(SWrapperLink, { href: opportunity.shareLink || opportunity.projectUrl || "", target: "_blank", children: [(0, jsx_runtime_1.jsxs)(StyledCardHead, { children: [(0, jsx_runtime_1.jsx)(OpportunityImage, { alt: opportunity.name, src: opportunity.media
|
|
240
240
|
? `${getMediaENVDomain()}/opportunity-medias/${opportunity.media}`
|
|
241
241
|
: "" }), (0, jsx_runtime_1.jsx)(Headicons_1.default, { isMobile: isMobile, onClick: (e) => {
|
|
242
242
|
e.stopPropagation();
|
|
@@ -76,6 +76,6 @@ const UserPicSpa = ({ userId, width, height, isNeedBoxTransform, children, Image
|
|
|
76
76
|
return (0, jsx_runtime_1.jsx)(react_loading_skeleton_1.default, { className: "userPicImage" });
|
|
77
77
|
};
|
|
78
78
|
const NEXT_PUBLIC_ENV_VALUE = (0, env_1.useEnvStore)((state) => state.NEXT_PUBLIC_ENV_VALUE);
|
|
79
|
-
return ((0, jsx_runtime_1.jsx)(StyledHeaderUserPic, { isNeedBoxTransform: isNeedBoxTransform, imageWidth: `${width}px`, imageHeight: `${height}px`, children: (0, jsx_runtime_1.jsxs)(Link, { href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["profile"]}/${userId}/
|
|
79
|
+
return ((0, jsx_runtime_1.jsx)(StyledHeaderUserPic, { isNeedBoxTransform: isNeedBoxTransform, imageWidth: `${width}px`, imageHeight: `${height}px`, children: (0, jsx_runtime_1.jsxs)(Link, { href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["profile"]}/${userId}/new-opportunities`, className: "userPicBlock", children: [loading || isLoadingProfileData ? renderSkeleton() : renderImageOrDefaultUserPic(), children] }) }));
|
|
80
80
|
};
|
|
81
81
|
exports.default = UserPicSpa;
|
|
@@ -80,7 +80,7 @@ const UserPic = ({ userId, width, height, isNeedBoxTransform, children, }) => {
|
|
|
80
80
|
return (0, jsx_runtime_1.jsx)(react_loading_skeleton_1.default, { className: "userPicImage" });
|
|
81
81
|
};
|
|
82
82
|
const NEXT_PUBLIC_ENV_VALUE = (0, env_1.useEnvStore)((state) => state.NEXT_PUBLIC_ENV_VALUE);
|
|
83
|
-
return ((0, jsx_runtime_1.jsx)(StyledHeaderUserPic, { isNeedBoxTransform: isNeedBoxTransform, imageWidth: `${width}px`, imageHeight: `${height}px`, children: (0, jsx_runtime_1.jsxs)(link_1.default, { href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["profile"]}/${userId}/
|
|
83
|
+
return ((0, jsx_runtime_1.jsx)(StyledHeaderUserPic, { isNeedBoxTransform: isNeedBoxTransform, imageWidth: `${width}px`, imageHeight: `${height}px`, children: (0, jsx_runtime_1.jsxs)(link_1.default, { href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["profile"]}/${userId}/new-opportunities`, className: "userPicBlock", children: [loading || isLoadingProfileData ? renderSkeleton() : renderImageOrDefaultUserPic(), children] }) }));
|
|
84
84
|
};
|
|
85
85
|
// Export
|
|
86
86
|
exports.default = UserPic;
|