Fix types
This commit is contained in:
parent
7744199eac
commit
b2ff402587
|
@ -1,3 +1,4 @@
|
||||||
|
import _ from 'lodash'
|
||||||
import { SparklesIcon, XIcon } from '@heroicons/react/solid'
|
import { SparklesIcon, XIcon } from '@heroicons/react/solid'
|
||||||
import { Avatar } from './avatar'
|
import { Avatar } from './avatar'
|
||||||
import { useEffect, useRef, useState } from 'react'
|
import { useEffect, useRef, useState } from 'react'
|
||||||
|
@ -10,7 +11,6 @@ import { Col } from './layout/col'
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
import { Row } from './layout/row'
|
import { Row } from './layout/row'
|
||||||
import { ENV_CONFIG } from '../../common/envs/constants'
|
import { ENV_CONFIG } from '../../common/envs/constants'
|
||||||
import _ from 'lodash'
|
|
||||||
|
|
||||||
export function FeedPromo(props: { hotContracts: Contract[] }) {
|
export function FeedPromo(props: { hotContracts: Contract[] }) {
|
||||||
const { hotContracts } = props
|
const { hotContracts } = props
|
||||||
|
@ -55,7 +55,8 @@ export function FeedPromo(props: { hotContracts: Contract[] }) {
|
||||||
</Row>
|
</Row>
|
||||||
<ContractsGrid
|
<ContractsGrid
|
||||||
contracts={hotContracts?.slice(0, 10) || []}
|
contracts={hotContracts?.slice(0, 10) || []}
|
||||||
showHotVolume
|
loadMore={() => {}}
|
||||||
|
hasMore={false}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
@ -158,7 +158,11 @@ function ExploreMarketsSection(props: { hotContracts: Contract[] }) {
|
||||||
Today's top markets
|
Today's top markets
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ContractsGrid contracts={hotContracts} />
|
<ContractsGrid
|
||||||
|
contracts={hotContracts}
|
||||||
|
loadMore={() => {}}
|
||||||
|
hasMore={false}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user