From 751c02274898ea1c785cc0ce5dbd924ab3b87fe9 Mon Sep 17 00:00:00 2001 From: 1oannis Date: Sun, 6 Oct 2024 13:18:39 +0000 Subject: [PATCH] fix preload logos --- app/page.tsx | 3 +-- components/ui/sidebar.tsx | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index c9baed1..02bd0e1 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -2,13 +2,12 @@ import type { Metadata } from "next" export const metadata: Metadata = { title: "Homepage", - description: "This is the homepage", + description: "This is the homepage of Ioannis Theodosiadis", } export default function Home() { return ( <> -

Welcome to the homepage

) } diff --git a/components/ui/sidebar.tsx b/components/ui/sidebar.tsx index 9320c71..d53a7e1 100644 --- a/components/ui/sidebar.tsx +++ b/components/ui/sidebar.tsx @@ -30,7 +30,7 @@ function SidebarItem({ icon, label, isOpen }: SidebarItemProps) { } export default function Sidebar({ children }: Readonly<{ children: React.ReactNode }>) { - const [isSidebarOpen, setIsSidebarOpen] = useState(true) + const [isSidebarOpen, setIsSidebarOpen] = useState(false) const toggleSidebar = () => setIsSidebarOpen(!isSidebarOpen) return ( @@ -38,9 +38,9 @@ export default function Sidebar({ children }: Readonly<{ children: React.ReactNo {/* Sidebar */}