diff --git a/web/components/answers/answer-bet-panel.tsx b/web/components/answers/answer-bet-panel.tsx index 238c7783..f04d752f 100644 --- a/web/components/answers/answer-bet-panel.tsx +++ b/web/components/answers/answer-bet-panel.tsx @@ -24,7 +24,7 @@ import { } from 'common/calculate-dpm' import { Bet } from 'common/bet' import { track } from 'web/lib/service/analytics' -import { SignUpPrompt } from '../sign-up-prompt' +import { BetSignUpPrompt } from '../sign-up-prompt' import { isIOS } from 'web/lib/util/device' import { AlertBox } from '../alert-box' @@ -204,7 +204,7 @@ export function AnswerBetPanel(props: { {isSubmitting ? 'Submitting...' : 'Submit trade'} ) : ( - + )} ) diff --git a/web/components/bet-button.tsx b/web/components/bet-button.tsx index 2aca1772..578d9cc0 100644 --- a/web/components/bet-button.tsx +++ b/web/components/bet-button.tsx @@ -10,6 +10,7 @@ import { useSaveBinaryShares } from './use-save-binary-shares' import { Col } from './layout/col' import { Button } from 'web/components/button' import { firebaseLogin } from 'web/lib/firebase/users' +import { BetSignUpPrompt } from './sign-up-prompt' /** Button that opens BetPanel in a new modal */ export default function BetButton(props: { @@ -32,15 +33,17 @@ export default function BetButton(props: { return ( <> - + {user ? ( + + ) : ( + + )} {user && (
diff --git a/web/components/bet-inline.tsx b/web/components/bet-inline.tsx index 64780f4b..af75ff7c 100644 --- a/web/components/bet-inline.tsx +++ b/web/components/bet-inline.tsx @@ -12,7 +12,7 @@ import { Row } from './layout/row' import { YesNoSelector } from './yes-no-selector' import { useUnfilledBets } from 'web/hooks/use-bets' import { useUser } from 'web/hooks/use-user' -import { SignUpPrompt } from './sign-up-prompt' +import { BetSignUpPrompt } from './sign-up-prompt' import { getCpmmProbability } from 'common/calculate-cpmm' import { Col } from './layout/col' import { XIcon } from '@heroicons/react/solid' @@ -112,7 +112,7 @@ export function BetInline(props: { : 'Submit'} )} - + )} diff --git a/web/components/feed/feed-items.tsx b/web/components/feed/feed-items.tsx index 62673428..4a121120 100644 --- a/web/components/feed/feed-items.tsx +++ b/web/components/feed/feed-items.tsx @@ -34,7 +34,7 @@ import { import { FeedBet } from 'web/components/feed/feed-bets' import { CPMMBinaryContract, NumericContract } from 'common/contract' import { FeedLiquidity } from './feed-liquidity' -import { SignUpPrompt } from '../sign-up-prompt' +import { BetSignUpPrompt } from '../sign-up-prompt' import { User } from 'common/user' import { PlayMoneyDisclaimer } from '../play-money-disclaimer' import { contractMetrics } from 'common/contract-details' @@ -70,7 +70,7 @@ export function FeedItems(props: { {!user ? ( - + ) : ( diff --git a/web/components/numeric-bet-panel.tsx b/web/components/numeric-bet-panel.tsx index e3b4bc29..e747b78d 100644 --- a/web/components/numeric-bet-panel.tsx +++ b/web/components/numeric-bet-panel.tsx @@ -18,7 +18,7 @@ import { BucketInput } from './bucket-input' import { Col } from './layout/col' import { Row } from './layout/row' import { Spacer } from './layout/spacer' -import { SignUpPrompt } from './sign-up-prompt' +import { BetSignUpPrompt } from './sign-up-prompt' import { track } from 'web/lib/service/analytics' export function NumericBetPanel(props: { @@ -34,7 +34,7 @@ export function NumericBetPanel(props: { - + ) } diff --git a/web/components/sign-up-prompt.tsx b/web/components/sign-up-prompt.tsx index 6a55fc28..2c6f7b54 100644 --- a/web/components/sign-up-prompt.tsx +++ b/web/components/sign-up-prompt.tsx @@ -4,7 +4,7 @@ import { firebaseLogin } from 'web/lib/firebase/users' import { withTracking } from 'web/lib/service/analytics' import { Button, SizeType } from './button' -export function SignUpPrompt(props: { +export function BetSignUpPrompt(props: { label?: string className?: string size?: SizeType @@ -19,7 +19,7 @@ export function SignUpPrompt(props: { size={size} color="gradient" > - {label ?? 'Sign up to bet!'} + {label ?? 'Place my bet!'} ) : null }