rename GlobalNavBar to GlobalHeader
for consistency with GlobalFooter
This commit is contained in:
parent
5c8fbdc81e
commit
1eeba40fac
2 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ import useCurrentUser from "./components/useCurrentUser";
|
|||
import HomeLinkIcon from "../images/home-link-icon.png";
|
||||
import HomeLinkIcon2x from "../images/home-link-icon@2x.png";
|
||||
|
||||
function GlobalNavBar() {
|
||||
function GlobalHeader() {
|
||||
const { pathname } = useLocation();
|
||||
const isHomePage = pathname === "/";
|
||||
|
||||
|
@ -151,4 +151,4 @@ const NavButton = React.forwardRef(({ icon, ...props }, ref) => {
|
|||
);
|
||||
});
|
||||
|
||||
export default GlobalNavBar;
|
||||
export default GlobalHeader;
|
|
@ -2,7 +2,7 @@ import React from "react";
|
|||
import { Box } from "@chakra-ui/core";
|
||||
import loadable from "@loadable/component";
|
||||
|
||||
const GlobalNavBar = loadable(() => import("./GlobalNavBar"));
|
||||
const GlobalHeader = loadable(() => import("./GlobalHeader"));
|
||||
const GlobalFooter = loadable(() => import("./GlobalFooter"));
|
||||
|
||||
function PageLayout({ children }) {
|
||||
|
@ -22,7 +22,7 @@ function PageLayout({ children }) {
|
|||
// Leave space while content is still loading
|
||||
minHeight="2rem"
|
||||
>
|
||||
<GlobalNavBar />
|
||||
<GlobalHeader />
|
||||
</Box>
|
||||
<Box flex="1 0 0">{children}</Box>
|
||||
<Box width="100%" marginTop="12">
|
||||
|
|
Loading…
Reference in a new issue