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:
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -83,7 +83,7 @@ module.exports = (phase, { defaultConfig }) => {
|
||||
{
|
||||
source: "/:path(.*)",
|
||||
headers: [
|
||||
{
|
||||
config.onionDomain && {
|
||||
key: "Onion-Location",
|
||||
value: `${config.onionDomain}/:path*`,
|
||||
},
|
||||
|
Reference in New Issue
Block a user