Skip to content

Commit 4b6f1c5

Browse files
committed
Remove accidentally duplicated SafeHydrate
1 parent 646206e commit 4b6f1c5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

site/pages/_app.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ import ThemeProvider from "@material-ui/styles/ThemeProvider"
55

66
import { light } from "../theme"
77
import { AppProps } from "next/app"
8-
import { makeStyles } from "@material-ui/core"
9-
10-
/**
11-
* SafeHydrate is a component that only allows its children to be rendered
12-
* client-side. This check is performed by querying the existence of the window
13-
* global.
14-
*/
15-
const SafeHydrate: React.FC = ({ children }) => (
16-
<div suppressHydrationWarning>{typeof window === "undefined" ? null : children}</div>
17-
)
188

199
/**
2010
* ClientRender is a component that only allows its children to be rendered

0 commit comments

Comments
 (0)