Listen for updates on daily mover contract

This commit is contained in:
James Grugett 2022-09-28 09:52:16 -04:00
parent 7c8e977d60
commit dba938032f

View File

@ -7,6 +7,7 @@ import { SiteLink } from '../site-link'
import { Col } from '../layout/col' import { Col } from '../layout/col'
import { Row } from '../layout/row' import { Row } from '../layout/row'
import { LoadingIndicator } from '../loading-indicator' import { LoadingIndicator } from '../loading-indicator'
import { useContractWithPreload } from 'web/hooks/use-contract'
export function ProbChangeTable(props: { export function ProbChangeTable(props: {
changes: CPMMContract[] | undefined changes: CPMMContract[] | undefined
@ -59,7 +60,9 @@ export function ProbChangeRow(props: {
contract: CPMMContract contract: CPMMContract
className?: string className?: string
}) { }) {
const { contract, className } = props const { className } = props
const contract =
(useContractWithPreload(props.contract) as CPMMContract) ?? props.contract
return ( return (
<Row <Row
className={clsx( className={clsx(