From cf56733ab6fd6581003a9c2e85cf44bd0fb4f8e8 Mon Sep 17 00:00:00 2001 From: David Arranz Date: Fri, 9 Aug 2024 16:50:25 +0200 Subject: [PATCH] =?UTF-8?q?Quitar=20la=20b=C3=BAsqueda=20global?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/Layout/LayoutHeader.tsx | 19 ++++--------------- .../Layout/components/GlobalSearchForm.tsx | 17 +++++++++++++++++ .../components/Layout/components/index.tsx | 2 ++ 3 files changed, 23 insertions(+), 15 deletions(-) create mode 100644 client/src/components/Layout/components/GlobalSearchForm.tsx create mode 100644 client/src/components/Layout/components/index.tsx diff --git a/client/src/components/Layout/LayoutHeader.tsx b/client/src/components/Layout/LayoutHeader.tsx index 20fa9c9..3a56a97 100644 --- a/client/src/components/Layout/LayoutHeader.tsx +++ b/client/src/components/Layout/LayoutHeader.tsx @@ -1,11 +1,10 @@ -import { Button, Input, Sheet, SheetContent, SheetTrigger } from "@/ui"; +import { Button, Sheet, SheetContent, SheetTrigger } from "@/ui"; -import { t } from "i18next"; -import { MenuIcon, Package2Icon, SearchIcon } from "lucide-react"; +import { MenuIcon, Package2Icon } from "lucide-react"; import { Trans } from "react-i18next"; import { Link } from "react-router-dom"; import { UeckoLogo } from "../UeckoLogo"; -import { UserButton } from "./components/UserButton"; +import { UserButton } from "./components"; export const LayoutHeader = () => { return ( @@ -71,17 +70,7 @@ export const LayoutHeader = () => { -
-
-
- - -
-
+
diff --git a/client/src/components/Layout/components/GlobalSearchForm.tsx b/client/src/components/Layout/components/GlobalSearchForm.tsx new file mode 100644 index 0000000..ab30c60 --- /dev/null +++ b/client/src/components/Layout/components/GlobalSearchForm.tsx @@ -0,0 +1,17 @@ +import { Input } from "@/ui"; + +import { t } from "i18next"; +import { SearchIcon } from "lucide-react"; + +export const GlobalSearchForm = () => ( +
+
+ + +
+
+); diff --git a/client/src/components/Layout/components/index.tsx b/client/src/components/Layout/components/index.tsx new file mode 100644 index 0000000..38a8dfc --- /dev/null +++ b/client/src/components/Layout/components/index.tsx @@ -0,0 +1,2 @@ +export * from "./GlobalSearchForm"; +export * from "./UserButton";