2022-08-24 16:49:53 +00:00
|
|
|
|
import { Col } from 'web/components/layout/col'
|
|
|
|
|
import { Modal } from 'web/components/layout/modal'
|
2022-08-25 02:16:38 +00:00
|
|
|
|
import { EyeIcon } from '@heroicons/react/outline'
|
2022-08-24 16:49:53 +00:00
|
|
|
|
import React from 'react'
|
2022-08-25 02:16:38 +00:00
|
|
|
|
import clsx from 'clsx'
|
2022-08-24 16:49:53 +00:00
|
|
|
|
|
2022-09-12 16:34:56 +00:00
|
|
|
|
export const WatchMarketModal = (props: {
|
2022-08-24 16:49:53 +00:00
|
|
|
|
open: boolean
|
|
|
|
|
setOpen: (b: boolean) => void
|
|
|
|
|
title?: string
|
|
|
|
|
}) => {
|
|
|
|
|
const { open, setOpen, title } = props
|
|
|
|
|
return (
|
|
|
|
|
<Modal open={open} setOpen={setOpen}>
|
|
|
|
|
<Col className="items-center gap-4 rounded-md bg-white px-8 py-6">
|
2022-08-25 02:16:38 +00:00
|
|
|
|
<EyeIcon className={clsx('h-20 w-20')} aria-hidden="true" />
|
|
|
|
|
<span className="text-xl">{title ? title : 'Watching questions'}</span>
|
2022-08-24 16:49:53 +00:00
|
|
|
|
<Col className={'gap-2'}>
|
2022-08-25 02:16:38 +00:00
|
|
|
|
<span className={'text-indigo-700'}>• What is watching?</span>
|
2022-08-24 16:49:53 +00:00
|
|
|
|
<span className={'ml-2'}>
|
2022-09-15 13:14:59 +00:00
|
|
|
|
Watching a market means you'll receive notifications from activity
|
|
|
|
|
on it. You automatically start watching a market if you comment on
|
|
|
|
|
it, bet on it, or click the
|
2022-08-25 02:16:38 +00:00
|
|
|
|
<EyeIcon
|
|
|
|
|
className={clsx('ml-1 inline h-6 w-6 align-top')}
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
/>
|
2022-09-15 13:14:59 +00:00
|
|
|
|
️ button.
|
2022-08-24 16:49:53 +00:00
|
|
|
|
</span>
|
|
|
|
|
<span className={'text-indigo-700'}>
|
|
|
|
|
• What types of notifications will I receive?
|
|
|
|
|
</span>
|
|
|
|
|
<span className={'ml-2'}>
|
2022-09-15 13:14:59 +00:00
|
|
|
|
New comments, answers, and updates to the question. See the
|
|
|
|
|
notifications settings pages to customize which types of
|
|
|
|
|
notifications you receive on watched markets.
|
2022-08-24 16:49:53 +00:00
|
|
|
|
</span>
|
|
|
|
|
</Col>
|
|
|
|
|
</Col>
|
|
|
|
|
</Modal>
|
|
|
|
|
)
|
|
|
|
|
}
|