From e8f5a66e5e607279eb810266bf5d907a8ef78e57 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Mon, 3 Oct 2022 16:47:22 +0800
Subject: feat: Hide sidebar search

---
 apps/kit/src/routes/(main)/(app)/+layout.svelte | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'apps/kit/src/routes/(main)/(app)/+layout.svelte')

diff --git a/apps/kit/src/routes/(main)/(app)/+layout.svelte b/apps/kit/src/routes/(main)/(app)/+layout.svelte
index 6660c53..0be6ff3 100644
--- a/apps/kit/src/routes/(main)/(app)/+layout.svelte
+++ b/apps/kit/src/routes/(main)/(app)/+layout.svelte
@@ -28,7 +28,7 @@
   let sidebarOpen = false;
   let sidebarSearchValue: string | undefined;
 
-  function signOut() {
+  function sign_out() {
     end_session(() => goto("/sign-in"));
   }
 
@@ -182,7 +182,7 @@
             <div class="py-1">
               <MenuItem>
                 <span
-                  on:click={() => signOut()}
+                  on:click={() => sign_out()}
                   class="text-gray-700 block px-4 py-2 text-sm hover:bg-red-200 hover:text-red-900 cursor-pointer"
                 >
                   Sign out
@@ -193,7 +193,7 @@
         </Transition>
       </Menu>
       <!-- Sidebar Search -->
-      <div class="mt-3">
+      <div class="mt-3 hidden">
         <label for="search" class="sr-only">Search</label>
         <div class="relative mt-1 rounded-md shadow-sm">
           <Input type="search" name="search" icon={MagnifyingGlassIcon} placeholder="Search" bind:value={sidebarSearchValue} />
@@ -280,7 +280,7 @@
                   </MenuItem>
                   <div class="py-1">
                     <MenuItem>
-                      <span on:click={() => signOut()} class="text-gray-700 block px-4 py-2 text-sm"> Sign out </span>
+                      <span on:click={() => sign_out()} class="text-gray-700 block px-4 py-2 text-sm"> Sign out </span>
                     </MenuItem>
                   </div>
                 </div>
-- 
cgit v1.3

