Skip to content

Commit

Permalink
lowercase sweepcash
Browse files Browse the repository at this point in the history
  • Loading branch information
sipec committed Sep 24, 2024
1 parent b608a02 commit c3f4503
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/src/envs/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const SPICE_TO_CHARITY_DOLLARS = (1 / 1000) * (1 - CHARITY_FEE) // prize
export const NY_FL_CASHOUT_LIMIT = 5000

export const SPICE_NAME = 'Prize Point'
export const SWEEPIES_NAME = 'Sweepcash'
export const SWEEPIES_NAME = 'sweepcash'
export const SPICE_MARKET_TOOLTIP = `Prize market! Earn ${SPICE_NAME}s on resolution`
export const SWEEPIES_MARKET_TOOLTIP = `Sweepstakes market! Win real cash prizes.`
export const CASH_SUFFIX = '--cash'
Expand Down
3 changes: 2 additions & 1 deletion web/components/bet/cashout-limit-warning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { User } from 'common/user'
import { formatMoneyUSD, formatPercent } from 'common/util/format'
import { useState } from 'react'
import { IoIosWarning } from 'react-icons/io'
import { capitalize } from 'lodash'
import { Col } from '../layout/col'
import { Modal, MODAL_CLASS } from '../layout/modal'
import { CoinNumber } from '../widgets/coin-number'
Expand Down Expand Up @@ -50,7 +51,7 @@ export function CashoutLimitWarning(props: {

<Col className="gap-1">
<div className="text-ink-600 font-semibold">
{SWEEPIES_NAME} Redemption
{capitalize(SWEEPIES_NAME)} Redemption
</div>
<span>
<CoinNumber
Expand Down
4 changes: 3 additions & 1 deletion web/components/contract/feed-contract-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { User } from 'common/user'
import { formatWithToken, shortFormatNumber } from 'common/util/format'
import { removeUndefinedProps } from 'common/util/object'
import { removeEmojis } from 'common/util/string'
import { capitalize } from 'lodash'
import { TbDropletHeart, TbMoneybag } from 'react-icons/tb'
import { ClaimButton } from 'web/components/ad/claim-ad-button'
import { BinaryMultiAnswersPanel } from 'web/components/answers/binary-multi-answers-panel'
Expand Down Expand Up @@ -204,7 +205,8 @@ export function FeedContractCard(props: {
)}
>
<span>
<SweepiesCoin className="-mt-0.5" /> {SWEEPIES_NAME} Market
<SweepiesCoin className="-mt-0.5" /> {capitalize(SWEEPIES_NAME)}{' '}
Market
</span>
</div>
) : (
Expand Down
4 changes: 3 additions & 1 deletion web/components/twomba/sweep-verify-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ export function InBeta(props: {
)}
>
<Tooltip
text={`${SWEEPIES_NAME} is currently in beta, which means we’re still fine-tuning it. You may encounter some bugs or imperfections as we continue to improve it.`}
text={`${capitalize(
SWEEPIES_NAME
)} is currently in beta, which means we’re still fine-tuning it. You may encounter some bugs or imperfections as we continue to improve it.`}
placement={tooltipPlacement}
>
BETA
Expand Down

0 comments on commit c3f4503

Please sign in to comment.