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

remove unnecessary memoization

This commit is contained in:
2022-05-04 09:44:05 -04:00
parent 2ea6495fd8
commit ef3071dd99
6 changed files with 6 additions and 11 deletions

View File

@ -1,4 +1,3 @@
import { memo } from "react";
import NextLink from "next/link";
import { HeartIcon, NextjsLogo } from "../Icons";
import { keyframes, styled } from "../../lib/styles/stitches.config";
@ -128,4 +127,4 @@ const Footer = ({ ...rest }: FooterProps) => (
</Wrapper>
);
export default memo(Footer);
export default Footer;

View File

@ -1,4 +1,3 @@
import { memo } from "react";
import Selfie from "../Selfie";
import Menu from "../Menu";
import { styled } from "../../lib/styles/stitches.config";
@ -58,4 +57,4 @@ const Header = ({ ...rest }: HeaderProps) => (
</Wrapper>
);
export default memo(Header);
export default Header;

View File

@ -1,4 +1,3 @@
import { memo } from "react";
import { styled, keyframes } from "../../lib/styles/stitches.config";
import type { ComponentProps } from "react";
@ -64,4 +63,4 @@ const Loading = ({ width, boxes = 3, timing = 0.1, css, ...rest }: LoadingProps)
);
};
export default memo(Loading);
export default Loading;

View File

@ -1,4 +1,3 @@
import { memo } from "react";
import { useRouter } from "next/router";
import MenuItem from "../MenuItem";
import ThemeToggle from "../ThemeToggle";
@ -60,4 +59,4 @@ const Menu = ({ ...rest }: MenuProps) => {
);
};
export default memo(Menu);
export default Menu;

View File

@ -1,4 +1,3 @@
import { memo } from "react";
import NextLink from "next/link";
import NextImage from "next/image";
import { styled } from "../../lib/styles/stitches.config";
@ -60,4 +59,4 @@ const Selfie = ({ ...rest }: SelfieProps) => (
</NextLink>
);
export default memo(Selfie);
export default Selfie;

View File

@ -83,7 +83,7 @@ module.exports = (phase, { defaultConfig }) => {
{
source: "/:path(.*)",
headers: [
{
config.onionDomain && {
key: "Onion-Location",
value: `${config.onionDomain}/:path*`,
},