Turn off hook for fetching hot contracts for now.
This commit is contained in:
parent
f6079e68d0
commit
0069846335
|
@ -17,7 +17,6 @@ import {
|
||||||
import { Col } from '../components/layout/col'
|
import { Col } from '../components/layout/col'
|
||||||
import { ContractCard } from '../components/contract-card'
|
import { ContractCard } from '../components/contract-card'
|
||||||
import { Bet, listAllBets } from '../lib/firebase/bets'
|
import { Bet, listAllBets } from '../lib/firebase/bets'
|
||||||
import { useHotContracts } from '../hooks/use-contracts'
|
|
||||||
|
|
||||||
export async function getStaticProps() {
|
export async function getStaticProps() {
|
||||||
const [contracts, hotContracts, recentComments] = await Promise.all([
|
const [contracts, hotContracts, recentComments] = await Promise.all([
|
||||||
|
@ -52,9 +51,12 @@ const Home = (props: {
|
||||||
activeContractComments: Comment[][]
|
activeContractComments: Comment[][]
|
||||||
hotContracts: Contract[]
|
hotContracts: Contract[]
|
||||||
}) => {
|
}) => {
|
||||||
const { activeContracts, activeContractBets, activeContractComments } = props
|
const {
|
||||||
|
activeContracts,
|
||||||
const hotContracts = useHotContracts() ?? props.hotContracts
|
activeContractBets,
|
||||||
|
activeContractComments,
|
||||||
|
hotContracts,
|
||||||
|
} = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user