From ecc92c4d21e2f224e6848b596a39bd61263347e7 Mon Sep 17 00:00:00 2001 From: Ikwue Inalegwu Date: Wed, 5 Jun 2024 16:32:33 +0100 Subject: [PATCH] [chore]cleanuo --- src/web/components/Layout.tsx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/web/components/Layout.tsx b/src/web/components/Layout.tsx index 30f2666..97cfb19 100644 --- a/src/web/components/Layout.tsx +++ b/src/web/components/Layout.tsx @@ -3,8 +3,8 @@ import { useObserveEffect } from "@legendapp/state/react"; import { Button, Flex } from "@radix-ui/themes"; import { fileTransferState$, globalState$ } from "@shared/state"; import t from "@src/shared/config"; -import { Link, useRouterState } from "@tanstack/react-router"; -import { ChevronLeft, Minus, Moon, Plus, Sun, X } from "lucide-react"; +import { useRouterState } from "@tanstack/react-router"; +import { Minus, Moon, Plus, Sun, X } from "lucide-react"; import type React from "react"; import { useCallback } from "react"; @@ -18,8 +18,6 @@ export default function Layout({ children }: LayoutProps) { const navState = useRouterState(); - const isHome = navState.location.pathname === "/"; - const isDarkMode = computed(() => globalState$.colorMode.get() === "dark"); useObserveEffect(() => { @@ -59,17 +57,6 @@ export default function Layout({ children }: LayoutProps) { gap="4" className="absolute z-10 w-full px-4 py-3 top-0 left-0" > - {!isHome && ( - - )}