betting streaks copy
This commit is contained in:
parent
2fef413d88
commit
dd6c5dc97a
|
@ -16,7 +16,7 @@ export function BettingStreakModal(props: {
|
||||||
<Modal open={isOpen} setOpen={setOpen}>
|
<Modal open={isOpen} setOpen={setOpen}>
|
||||||
<Col className="items-center gap-4 rounded-md bg-white px-8 py-6">
|
<Col className="items-center gap-4 rounded-md bg-white px-8 py-6">
|
||||||
<span className={'text-8xl'}>🔥</span>
|
<span className={'text-8xl'}>🔥</span>
|
||||||
<span>Betting streaks are here!</span>
|
<span>Daily betting streaks</span>
|
||||||
<Col className={'gap-2'}>
|
<Col className={'gap-2'}>
|
||||||
<span className={'text-indigo-700'}>• What are they?</span>
|
<span className={'text-indigo-700'}>• What are they?</span>
|
||||||
<span className={'ml-2'}>
|
<span className={'ml-2'}>
|
||||||
|
|
|
@ -377,6 +377,7 @@ function IncomeNotificationItem(props: {
|
||||||
function reasonAndLink(simple: boolean) {
|
function reasonAndLink(simple: boolean) {
|
||||||
const { sourceText } = notification
|
const { sourceText } = notification
|
||||||
let reasonText = ''
|
let reasonText = ''
|
||||||
|
|
||||||
if (sourceType === 'bonus' && sourceText) {
|
if (sourceType === 'bonus' && sourceText) {
|
||||||
reasonText = !simple
|
reasonText = !simple
|
||||||
? `Bonus for ${
|
? `Bonus for ${
|
||||||
|
@ -385,23 +386,30 @@ function IncomeNotificationItem(props: {
|
||||||
: 'bonus on'
|
: 'bonus on'
|
||||||
} else if (sourceType === 'tip') {
|
} else if (sourceType === 'tip') {
|
||||||
reasonText = !simple ? `tipped you on` : `in tips on`
|
reasonText = !simple ? `tipped you on` : `in tips on`
|
||||||
} else if (sourceType === 'betting_streak_bonus' && sourceText) {
|
} else if (sourceType === 'betting_streak_bonus') {
|
||||||
reasonText = `for your ${
|
reasonText = 'for your'
|
||||||
parseInt(sourceText) / BETTING_STREAK_BONUS_AMOUNT
|
|
||||||
}-day`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const bettingStreakText =
|
||||||
|
sourceType === 'betting_streak_bonus' &&
|
||||||
|
(sourceText
|
||||||
|
? `🔥 ${
|
||||||
|
parseInt(sourceText) / BETTING_STREAK_BONUS_AMOUNT
|
||||||
|
} day Betting Streak`
|
||||||
|
: 'Betting Streak')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{reasonText}
|
{reasonText}
|
||||||
{sourceType === 'betting_streak_bonus' ? (
|
{sourceType === 'betting_streak_bonus' ? (
|
||||||
simple ? (
|
simple ? (
|
||||||
<span className={'ml-1 font-bold'}>Betting Streak</span>
|
<span className={'ml-1 font-bold'}>{bettingStreakText}</span>
|
||||||
) : (
|
) : (
|
||||||
<SiteLink
|
<SiteLink
|
||||||
className={'ml-1 font-bold'}
|
className={'ml-1 font-bold'}
|
||||||
href={'/betting-streak-bonus'}
|
href={'/betting-streak-bonus'}
|
||||||
>
|
>
|
||||||
Betting Streak
|
{bettingStreakText}
|
||||||
</SiteLink>
|
</SiteLink>
|
||||||
)
|
)
|
||||||
) : (
|
) : (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user