mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-01-11 03:02:56 -05:00
remove unnecessary memoization
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import { memo } from "react";
|
|
||||||
import NextLink from "next/link";
|
import NextLink from "next/link";
|
||||||
import { HeartIcon, NextjsLogo } from "../Icons";
|
import { HeartIcon, NextjsLogo } from "../Icons";
|
||||||
import { keyframes, styled } from "../../lib/styles/stitches.config";
|
import { keyframes, styled } from "../../lib/styles/stitches.config";
|
||||||
@@ -128,4 +127,4 @@ const Footer = ({ ...rest }: FooterProps) => (
|
|||||||
</Wrapper>
|
</Wrapper>
|
||||||
);
|
);
|
||||||
|
|
||||||
export default memo(Footer);
|
export default Footer;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { memo } from "react";
|
|
||||||
import Selfie from "../Selfie";
|
import Selfie from "../Selfie";
|
||||||
import Menu from "../Menu";
|
import Menu from "../Menu";
|
||||||
import { styled } from "../../lib/styles/stitches.config";
|
import { styled } from "../../lib/styles/stitches.config";
|
||||||
@@ -58,4 +57,4 @@ const Header = ({ ...rest }: HeaderProps) => (
|
|||||||
</Wrapper>
|
</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 { styled, keyframes } from "../../lib/styles/stitches.config";
|
||||||
import type { ComponentProps } from "react";
|
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 { useRouter } from "next/router";
|
||||||
import MenuItem from "../MenuItem";
|
import MenuItem from "../MenuItem";
|
||||||
import ThemeToggle from "../ThemeToggle";
|
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 NextLink from "next/link";
|
||||||
import NextImage from "next/image";
|
import NextImage from "next/image";
|
||||||
import { styled } from "../../lib/styles/stitches.config";
|
import { styled } from "../../lib/styles/stitches.config";
|
||||||
@@ -60,4 +59,4 @@ const Selfie = ({ ...rest }: SelfieProps) => (
|
|||||||
</NextLink>
|
</NextLink>
|
||||||
);
|
);
|
||||||
|
|
||||||
export default memo(Selfie);
|
export default Selfie;
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ module.exports = (phase, { defaultConfig }) => {
|
|||||||
{
|
{
|
||||||
source: "/:path(.*)",
|
source: "/:path(.*)",
|
||||||
headers: [
|
headers: [
|
||||||
{
|
config.onionDomain && {
|
||||||
key: "Onion-Location",
|
key: "Onion-Location",
|
||||||
value: `${config.onionDomain}/:path*`,
|
value: `${config.onionDomain}/:path*`,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user