00c9fa61c3
* Parse notif, show betting streaks modal, schedule function * Ignore streaks of 0 * Pass notifyFills the contract * Turn 9am into a constant * Lint * Up streak reward, fix timing logic * Change wording
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
import { Modal } from 'web/components/layout/modal'
|
|
import { Col } from 'web/components/layout/col'
|
|
|
|
export function BettingStreakModal(props: {
|
|
isOpen: boolean
|
|
setOpen: (open: boolean) => void
|
|
}) {
|
|
const { isOpen, setOpen } = props
|
|
|
|
return (
|
|
<Modal open={isOpen} setOpen={setOpen}>
|
|
<Col className="items-center gap-4 rounded-md bg-white px-8 py-6">
|
|
<span className={'text-8xl'}>🔥</span>
|
|
<span>Betting streaks are here!</span>
|
|
<Col className={'gap-2'}>
|
|
<span className={'text-indigo-700'}>• What are they?</span>
|
|
<span className={'ml-2'}>
|
|
You get a reward for every consecutive day that you place a bet. The
|
|
more days you bet in a row, the more you earn!
|
|
</span>
|
|
<span className={'text-indigo-700'}>
|
|
• Where can I check my streak?
|
|
</span>
|
|
<span className={'ml-2'}>
|
|
You can see your current streak on the top right of your profile
|
|
page.
|
|
</span>
|
|
</Col>
|
|
</Col>
|
|
</Modal>
|
|
)
|
|
}
|