1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 00:15:30 -04:00

separate ThemeContext and useTheme code

This commit is contained in:
2022-04-06 17:40:16 -04:00
parent eccf2108c7
commit 25aed87b21
9 changed files with 165 additions and 175 deletions

View File

@@ -1,7 +1,6 @@
import { memo } from "react";
import Selfie from "../Selfie";
import Menu from "../Menu";
import Ukraine from "../Ukraine";
import { styled } from "../../lib/styles/stitches.config";
import type { ComponentProps } from "react";
@@ -58,15 +57,12 @@ export type HeaderProps = ComponentProps<typeof Wrapper> & {
};
const Header = ({ sticky, ...rest }: HeaderProps) => (
<>
<Ukraine />
<Wrapper sticky={sticky} {...rest}>
<Nav>
<Selfie />
<ResponsiveMenu />
</Nav>
</Wrapper>
</>
<Wrapper sticky={sticky} {...rest}>
<Nav>
<Selfie />
<ResponsiveMenu />
</Nav>
</Wrapper>
);
export default memo(Header);