From 81fb2456bd61806cfca29413ae4022481f2a8b5d Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 5 Oct 2022 18:29:08 -0500 Subject: [PATCH] remove hook --- web/pages/midterms.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/web/pages/midterms.tsx b/web/pages/midterms.tsx index e838ca3f..77efc7fd 100644 --- a/web/pages/midterms.tsx +++ b/web/pages/midterms.tsx @@ -1,5 +1,4 @@ import { CPMMBinaryContract } from 'common/contract' -import { useEffect } from 'react' import { Col } from 'web/components/layout/col' import { Spacer } from 'web/components/layout/spacer' import { Page } from 'web/components/page' @@ -198,7 +197,6 @@ const App = (props: { senateContracts: CPMMBinaryContract[] governorContracts: CPMMBinaryContract[] }) => { - useSetIframeBackbroundColor() const { senateContracts, governorContracts } = props 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