Revert "fix: wrap child components in a memo"

This reverts commit 14c725ccd9.
This commit is contained in:
Derrick Hammer 2023-10-16 12:54:21 -04:00
parent e142f47ea3
commit 3babca3787
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 6 deletions

View File

@ -5,20 +5,15 @@ import {
} from "@/components/Browser.tsx"; } from "@/components/Browser.tsx";
import Lume from "@/components/Lume.tsx"; import Lume from "@/components/Lume.tsx";
import { LumeProvider } from "@lumeweb/sdk"; import { LumeProvider } from "@lumeweb/sdk";
import { memo } from "react";
export default function () { export default function () {
const MemeoedNavigator = memo(Navigator);
const MemeoedLume = memo(Lume);
const MemeoedBrowser = memo(Browser);
return ( return (
<LumeProvider> <LumeProvider>
<BrowserStateProvider> <BrowserStateProvider>
<> <>
<header className="relative h-14 px-2 pl-2 py-2 w-full bg-neutral-900 flex"> <header className="relative h-14 px-2 pl-2 py-2 w-full bg-neutral-900 flex">
<div className="relative h-full w-full rounded-full bg-neutral-800 border border-neutral-700 flex items-center [>input:focus]:ring-2 [>input:focus]:ring-white"> <div className="relative h-full w-full rounded-full bg-neutral-800 border border-neutral-700 flex items-center [>input:focus]:ring-2 [>input:focus]:ring-white">
<MemeoedNavigator /> <Navigator />
</div> </div>
<div className="w-32 flex justify-end"> <div className="w-32 flex justify-end">
<Lume /> <Lume />