Listen for updates on daily mover contract
This commit is contained in:
parent
7c8e977d60
commit
dba938032f
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user