@ludo.ninja/components 2.2.23 → 2.2.24

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.
@@ -1,4 +1,4 @@
1
1
  export declare const useGetOpportunities: (availableProfileId: string) => {
2
- opportunities: import("@ludo.ninja/api/build/graphql_tools/__generated__/opportunitiesHost/schema").Maybe<Pick<import("@ludo.ninja/api/build/graphql_tools/__generated__/opportunitiesHost/schema").IOpportunityV2, "views" | "createdAt" | "blockchain" | "name" | "description" | "collection" | "liked" | "opportunityId" | "brandId" | "categoryId" | "opportunityStatus" | "opportunityType" | "notificationType" | "brandName" | "brandDescription" | "brandMedia" | "brandUrl" | "brandIndustry" | "categoryName" | "ludoUrl" | "projectUrl" | "activeFrom" | "activeUntil" | "minXpLevel" | "maxXpLevel" | "minRank" | "maxRank" | "media" | "reportLink" | "clicks" | "minWalletValue" | "maxWalletValue" | "shareLink">>[];
2
+ opportunities: import("@ludo.ninja/api/build/graphql_tools/__generated__/opportunitiesHost/schema").Maybe<Pick<import("@ludo.ninja/api/build/graphql_tools/__generated__/opportunitiesHost/schema").IOpportunityV2, "views" | "createdAt" | "shareLink" | "blockchain" | "name" | "description" | "collection" | "liked" | "opportunityId" | "brandId" | "categoryId" | "opportunityStatus" | "opportunityType" | "notificationType" | "brandName" | "brandDescription" | "brandMedia" | "brandUrl" | "brandIndustry" | "categoryName" | "ludoUrl" | "projectUrl" | "activeFrom" | "activeUntil" | "minXpLevel" | "maxXpLevel" | "minRank" | "maxRank" | "media" | "reportLink" | "clicks" | "minWalletValue" | "maxWalletValue">>[];
3
3
  isLoadingOpportunities: boolean;
4
4
  };
@@ -1,4 +1,5 @@
1
1
  interface IShareDialog {
2
+ shareMyProfileLink?: string;
2
3
  link: string | null;
3
4
  onHide: () => void;
4
5
  params?: {
@@ -29,5 +30,5 @@ interface IShareDialog {
29
30
  };
30
31
  };
31
32
  }
32
- declare const ShareDialog: ({ link, onHide, params }: IShareDialog) => import("react/jsx-runtime").JSX.Element;
33
+ declare const ShareDialog: ({ link, onHide, params, shareMyProfileLink }: IShareDialog) => import("react/jsx-runtime").JSX.Element;
33
34
  export default ShareDialog;
@@ -18,6 +18,7 @@ const styled_components_1 = __importDefault(require("styled-components"));
18
18
  const STitle = (0, styled_components_1.default)(index_1.H1) `
19
19
  margin-bottom: 24px;
20
20
  color: ${colors_1.BlackColor};
21
+
21
22
  ${ScreenWidth_1.mediaQuery.minWidthFourK} {
22
23
  margin-bottom: ${(0, _4k_1.adaptiveValueCalc)(24)};
23
24
  }
@@ -73,10 +74,10 @@ const StyledShare = styled_components_1.default.div `
73
74
  }
74
75
  }
75
76
  `;
76
- const ShareDialog = ({ link, onHide, params }) => {
77
+ const ShareDialog = ({ link, onHide, params, shareMyProfileLink }) => {
77
78
  const url = new URL(link || "");
78
79
  url.search = "";
79
- const urlWithoutGetParameters = url.toString();
80
+ const urlWithoutGetParameters = shareMyProfileLink || url.toString();
80
81
  const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
81
82
  return ((0, jsx_runtime_1.jsxs)(StyledShare, { children: [(0, jsx_runtime_1.jsx)(index_1.Flex, { alignItems: "center", justifyContent: "center", children: (0, jsx_runtime_1.jsx)(STitle, { children: "Share to..." }) }), (0, jsx_runtime_1.jsxs)("div", { className: "shareButtons", children: [(0, jsx_runtime_1.jsxs)("button", { onClick: () => {
82
83
  onHide();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/components",
3
- "version": "2.2.23",
3
+ "version": "2.2.24",
4
4
  "private": false,
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",