remove hook

This commit is contained in:
mantikoros 2022-10-05 18:29:08 -05:00
parent f8ec306ee9
commit 81fb2456bd

View File

@ -1,5 +1,4 @@
import { CPMMBinaryContract } from 'common/contract' import { CPMMBinaryContract } from 'common/contract'
import { useEffect } from 'react'
import { Col } from 'web/components/layout/col' import { Col } from 'web/components/layout/col'
import { Spacer } from 'web/components/layout/spacer' import { Spacer } from 'web/components/layout/spacer'
import { Page } from 'web/components/page' import { Page } from 'web/components/page'
@ -198,7 +197,6 @@ const App = (props: {
senateContracts: CPMMBinaryContract[] senateContracts: CPMMBinaryContract[]
governorContracts: CPMMBinaryContract[] governorContracts: CPMMBinaryContract[]
}) => { }) => {
useSetIframeBackbroundColor()
const { senateContracts, governorContracts } = props const { senateContracts, governorContracts } = props
return ( return (
@ -270,13 +268,4 @@ const App = (props: {
) )
} }
const useSetIframeBackbroundColor = () => {
useEffect(() => {
if (window.location.host !== 'manifold.markets') return
for (let i = 0; i < self.frames.length; i++) {
self.frames[i].document.body.style.backgroundColor = '#f9fafb'
}
}, [])
}
export default App export default App