Skip to content

Commit

Permalink
[chore]cleanuo
Browse files Browse the repository at this point in the history
  • Loading branch information
Inalegwu committed Jun 5, 2024
1 parent 76fe8eb commit ecc92c4
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/web/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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(() => {
Expand Down Expand Up @@ -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 && (
<Button
variant="ghost"
className="w-2.5 h-4.5 rounded-full cursor-pointer"
asChild
>
<Link to="/">
<ChevronLeft size={12} />
</Link>
</Button>
)}
<Flex grow="1" id="drag-region" className="p-2" />
<Flex align="center" justify="end" gap="5">
<Button
Expand Down

0 comments on commit ecc92c4

Please sign in to comment.