From f71791bdd50a74c94af0c3b5e761c13425e75de6 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Sat, 17 Sep 2022 19:10:34 -0500 Subject: [PATCH] fix labels --- common/user.ts | 2 ++ web/components/bet-button.tsx | 2 +- web/components/feed/feed-comments.tsx | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/user.ts b/common/user.ts index 5ab07d35..3a5b91e1 100644 --- a/common/user.ts +++ b/common/user.ts @@ -86,6 +86,8 @@ export type PortfolioMetrics = { export const MANIFOLD_USERNAME = 'ManifoldMarkets' export const MANIFOLD_AVATAR_URL = 'https://manifold.markets/logo-bg-white.png' +// TODO: remove. Hardcoding the strings would be better. +// Different views require different language. export const BETTOR = ENV_CONFIG.bettor ?? 'bettor' // aka predictor export const BETTORS = ENV_CONFIG.bettor + 's' ?? 'bettors' export const PRESENT_BET = ENV_CONFIG.presentBet ?? 'bet' // aka predict diff --git a/web/components/bet-button.tsx b/web/components/bet-button.tsx index c0177fb3..4ac4b85c 100644 --- a/web/components/bet-button.tsx +++ b/web/components/bet-button.tsx @@ -42,7 +42,7 @@ export default function BetButton(props: { )} onClick={() => setOpen(true)} > - {PRESENT_BET} + Predict ) : ( diff --git a/web/components/feed/feed-comments.tsx b/web/components/feed/feed-comments.tsx index 9d2ba85e..a56d3125 100644 --- a/web/components/feed/feed-comments.tsx +++ b/web/components/feed/feed-comments.tsx @@ -255,7 +255,7 @@ function CommentStatus(props: { const { contract, outcome, prob } = props return ( <> - {` ${PRESENT_BET}ing `} + {` predicting `} {prob && ' at ' + Math.round(prob * 100) + '%'}