diff --git a/web/components/challenges/create-challenge-modal.tsx b/web/components/challenges/create-challenge-modal.tsx
index 6c810a44..f18fbdad 100644
--- a/web/components/challenges/create-challenge-modal.tsx
+++ b/web/components/challenges/create-challenge-modal.tsx
@@ -1,8 +1,7 @@
import clsx from 'clsx'
import dayjs from 'dayjs'
import React, { useEffect, useState } from 'react'
-import { LinkIcon, SwitchVerticalIcon } from '@heroicons/react/outline'
-import toast from 'react-hot-toast'
+import { SwitchVerticalIcon } from '@heroicons/react/outline'
import { Col } from '../layout/col'
import { Row } from '../layout/row'
@@ -16,7 +15,6 @@ import { SiteLink } from 'web/components/site-link'
import { formatMoney } from 'common/util/format'
import { NoLabel, YesLabel } from '../outcome-label'
import { QRCode } from '../qr-code'
-import { copyToClipboard } from 'web/lib/util/copy'
import { AmountInput } from '../amount-input'
import { getProbability } from 'common/calculate'
import { createMarket } from 'web/lib/firebase/api'
@@ -26,6 +24,7 @@ import Textarea from 'react-expanding-textarea'
import { useTextEditor } from 'web/components/editor'
import { LoadingIndicator } from 'web/components/loading-indicator'
import { track } from 'web/lib/service/analytics'
+import { CopyLinkButton } from '../copy-link-button'
type challengeInfo = {
amount: number
@@ -302,16 +301,7 @@ function CreateChallengeForm(props: {
Share the challenge using the link.
-
+
diff --git a/web/components/comment-input.tsx b/web/components/comment-input.tsx
index 6304b58d..65a697fe 100644
--- a/web/components/comment-input.tsx
+++ b/web/components/comment-input.tsx
@@ -138,16 +138,6 @@ export function CommentInputTextArea(props: {
)}
-
- {!user && (
-
- )}
-
>
)
}
diff --git a/web/components/contract/share-modal.tsx b/web/components/contract/share-modal.tsx
index 72c7aba3..df19b955 100644
--- a/web/components/contract/share-modal.tsx
+++ b/web/components/contract/share-modal.tsx
@@ -1,5 +1,4 @@
import { LinkIcon } from '@heroicons/react/outline'
-import toast from 'react-hot-toast'
import { Contract } from 'common/contract'
import { contractPath } from 'web/lib/firebase/contracts'
@@ -9,9 +8,7 @@ import { Row } from '../layout/row'
import { ShareEmbedButton } from '../share-embed-button'
import { Title } from '../title'
import { TweetButton } from '../tweet-button'
-import { Button } from '../button'
-import { copyToClipboard } from 'web/lib/util/copy'
-import { track, withTracking } from 'web/lib/service/analytics'
+import { withTracking } from 'web/lib/service/analytics'
import { ENV_CONFIG } from 'common/envs/constants'
import { User } from 'common/user'
import { SiteLink } from '../site-link'
@@ -22,6 +19,7 @@ import { useState } from 'react'
import { CHALLENGES_ENABLED } from 'common/challenge'
import ChallengeIcon from 'web/lib/icons/challenge-icon'
import { QRCode } from '../qr-code'
+import { CopyLinkButton } from '../copy-link-button'
export function ShareModal(props: {
contract: Contract
@@ -61,20 +59,7 @@ export function ShareModal(props: {
width={150}
height={150}
/>
-
+
e.target.select()}
/>