mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-05 23:43:37 +02:00
refact(home): clean up home header now used exclusively on home
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
abc37866bb
commit
4b2fb2e94f
@@ -1,16 +1,14 @@
|
||||
import { RouteComponentProps } from "@reach/router"
|
||||
import React, { FC, useEffect } from "react"
|
||||
|
||||
import { HomeHeader } from "../../components/HomeHeader"
|
||||
import { Home } from "../../components/Home"
|
||||
import { SEO } from "../../components/SEO"
|
||||
import { GlobalStyles } from "../../globalStyles"
|
||||
import useLocation from "../../hooks/useLocation"
|
||||
import { useLockBodyScroll } from "../../hooks/useLockBodyScroll"
|
||||
import { ThemeProvider } from "../../ThemeProvider"
|
||||
import * as SC from "./styles"
|
||||
|
||||
export const HomeLayout: FC<RouteComponentProps> = () => {
|
||||
const { isHome } = useLocation()
|
||||
const { locked, unlock } = useLockBodyScroll()
|
||||
|
||||
useEffect(() => {
|
||||
@@ -27,7 +25,7 @@ export const HomeLayout: FC<RouteComponentProps> = () => {
|
||||
title="Home"
|
||||
description="The Programmer's Hangout (TPH) is a discord community geared towards programming."
|
||||
/>
|
||||
<HomeHeader isHome={isHome} />
|
||||
<Home />
|
||||
</SC.LayoutWrapper>
|
||||
</ThemeProvider>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user