From 63538ae925cd46057df5b0392cf4841442813396 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Tue, 9 Aug 2022 21:51:01 -0500 Subject: [PATCH] referral link on user page, manalinks, market share dialog; native sharer on mobile --- web/components/contract/share-modal.tsx | 44 ++++++++++++++++--------- web/components/share-icon-button.tsx | 4 +-- web/components/user-page.tsx | 6 ++-- web/pages/links.tsx | 9 +++-- 4 files changed, 40 insertions(+), 23 deletions(-) diff --git a/web/components/contract/share-modal.tsx b/web/components/contract/share-modal.tsx index 017d3174..6651db13 100644 --- a/web/components/contract/share-modal.tsx +++ b/web/components/contract/share-modal.tsx @@ -14,7 +14,9 @@ import { Button } from '../button' import { copyToClipboard } from 'web/lib/util/copy' import { track } from 'web/lib/service/analytics' import { ENV_CONFIG } from 'common/envs/constants' -import { User } from 'common/user' +import { REFERRAL_AMOUNT, User } from 'common/user' +import { SiteLink } from '../site-link' +import { formatMoney } from 'common/util/format' export function ShareModal(props: { contract: Contract @@ -26,36 +28,50 @@ export function ShareModal(props: { const linkIcon =