@ludo.ninja/components 2.3.11 → 2.3.13
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.
|
@@ -6,17 +6,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const ui_1 = require("@ludo.ninja/ui");
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const ScreenWidth_1 = require("../../styles/ScreenWidth");
|
|
10
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
9
11
|
const StyledMyWalletsCaption = (0, styled_components_1.default)(ui_1.H2) `
|
|
10
12
|
margin-bottom: 20px;
|
|
13
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
14
|
+
margin-bottom: ${(0, _4k_1.adaptiveValueCalc)(20)};
|
|
15
|
+
}
|
|
11
16
|
`;
|
|
12
17
|
const StyledMyWalletsWrapper = styled_components_1.default.div `
|
|
13
18
|
margin-bottom: 24px;
|
|
19
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
20
|
+
margin-bottom: ${(0, _4k_1.adaptiveValueCalc)(24)};
|
|
21
|
+
}
|
|
14
22
|
`;
|
|
15
23
|
const StyledMyWallets = styled_components_1.default.div `
|
|
16
24
|
margin: 0 auto;
|
|
17
25
|
width: 300px;
|
|
18
|
-
|
|
19
|
-
|
|
26
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
27
|
+
width: ${(0, _4k_1.adaptiveValueCalc)(300)};
|
|
28
|
+
}
|
|
20
29
|
`;
|
|
21
30
|
const MyWallets = ({ caption, userWallets, isLoading, children, }) => {
|
|
22
31
|
return ((0, jsx_runtime_1.jsxs)(StyledMyWalletsWrapper, { children: [!userWallets.length && !isLoading && (0, jsx_runtime_1.jsx)(ui_1.H5, { children: "No connected wallets." }), caption && (0, jsx_runtime_1.jsx)(StyledMyWalletsCaption, { children: caption }), (0, jsx_runtime_1.jsx)(StyledMyWallets, { children: children })] }));
|
|
@@ -260,6 +260,6 @@ const OpportunityCard = ({ opportunity, toolsForRemove, }) => {
|
|
|
260
260
|
e.preventDefault();
|
|
261
261
|
}, children: (0, jsx_runtime_1.jsxs)("div", { className: "icons", children: [(0, jsx_runtime_1.jsx)("div", { className: "icon", onClick: () => {
|
|
262
262
|
openModalSidebarPortal((0, jsx_runtime_1.jsx)(OpportunityMenu_1.OpportunityMenu, { opportunity: opportunity, onClose: closeModalSidebarPortal }));
|
|
263
|
-
}, children: (0, jsx_runtime_1.jsx)(ShareIcon_1.ShareIcon, {}) }), !isProd() && ((0, jsx_runtime_1.jsx)(OpportunityLike, { isDefaultLiked: !!(isSignedIn && opportunity.liked), opportunityId: opportunity.opportunityId, toolsForRemove: toolsForRemove }))] }) })] }), (0, jsx_runtime_1.jsxs)(StyledCardContent, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "cardContent", children: [(0, jsx_runtime_1.jsxs)("div", { className: "cardContentWrapper", children: [(0, jsx_runtime_1.jsx)("p", { className: `secondName`, children: opportunity.name }), (0, jsx_runtime_1.jsx)("p", { className: `mainName`, dangerouslySetInnerHTML: { __html: sanitizedHtml } }), (0, jsx_runtime_1.jsxs)("p", { className: `categoryName`, children: [opportunity.categoryName, isShowParticipantsCount && (0, jsx_runtime_1.jsx)("span", { className: 'participantsCount', children:
|
|
263
|
+
}, children: (0, jsx_runtime_1.jsx)(ShareIcon_1.ShareIcon, {}) }), !isProd() && ((0, jsx_runtime_1.jsx)(OpportunityLike, { isDefaultLiked: !!(isSignedIn && opportunity.liked), opportunityId: opportunity.opportunityId, toolsForRemove: toolsForRemove }))] }) })] }), (0, jsx_runtime_1.jsxs)(StyledCardContent, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "cardContent", children: [(0, jsx_runtime_1.jsxs)("div", { className: "cardContentWrapper", children: [(0, jsx_runtime_1.jsx)("p", { className: `secondName`, children: opportunity.name }), (0, jsx_runtime_1.jsx)("p", { className: `mainName`, dangerouslySetInnerHTML: { __html: sanitizedHtml } }), (0, jsx_runtime_1.jsxs)("p", { className: `categoryName`, children: [opportunity.categoryName, isShowParticipantsCount && (0, jsx_runtime_1.jsx)("span", { className: 'participantsCount', children: `Free spots left: ${opportunity.availablePlacesForAirdrop}` })] })] }), (0, jsx_runtime_1.jsx)(OpportunityDropDown_1.OpportunityDropDown, { opportunity: opportunity })] }), (0, jsx_runtime_1.jsxs)(index_1.Flex, { alignItems: "end", justifyContent: "space-between", className: `categoryFooter`, children: [(0, jsx_runtime_1.jsx)(CardCategory_1.default, { label: data_1.default[opportunity.opportunityType] || data_1.default.opportunity }), opportunity.activeUntil && ((0, jsx_runtime_1.jsx)("div", { className: "date", children: `till ${(0, moment_1.default)(opportunity.activeUntil).format("LL")}` }))] })] })] }));
|
|
264
264
|
};
|
|
265
265
|
exports.OpportunityCard = OpportunityCard;
|