From ca01a3b44ed2533a5f5a09f9f683d1342cef0091 Mon Sep 17 00:00:00 2001 From: Chneemann Date: Tue, 18 Aug 2026 10:18:06 +0200 Subject: [PATCH] refactor(ui): reorganize component directory structure --- app/(app)/layout.tsx | 2 +- app/components/layout/Header.tsx | 2 +- app/components/{ => ui}/ErrorToast.tsx | 0 app/components/{layout => ui}/SearchBar.tsx | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename app/components/{ => ui}/ErrorToast.tsx (100%) rename app/components/{layout => ui}/SearchBar.tsx (100%) diff --git a/app/(app)/layout.tsx b/app/(app)/layout.tsx index 0202145..db7fbe4 100644 --- a/app/(app)/layout.tsx +++ b/app/(app)/layout.tsx @@ -8,7 +8,7 @@ import { redirect } from "next/navigation"; import Sidebar from "@/app/components/layout/Sidebar"; import Header from "@/app/components/layout/Header"; import Navbar from "@/app/components/layout/Navbar"; -import ErrorToast from "../components/ErrorToast"; +import ErrorToast from "../components/ui/ErrorToast"; import Footer from "@/app/components/layout/Footer"; /** diff --git a/app/components/layout/Header.tsx b/app/components/layout/Header.tsx index ea12f30..278c8af 100644 --- a/app/components/layout/Header.tsx +++ b/app/components/layout/Header.tsx @@ -4,7 +4,7 @@ */ import BrandLogo from "./BrandLogo"; -import SearchBar from "./SearchBar"; +import SearchBar from "../ui/SearchBar"; import UserBadge from "./UserBadge"; export default function Header() { diff --git a/app/components/ErrorToast.tsx b/app/components/ui/ErrorToast.tsx similarity index 100% rename from app/components/ErrorToast.tsx rename to app/components/ui/ErrorToast.tsx diff --git a/app/components/layout/SearchBar.tsx b/app/components/ui/SearchBar.tsx similarity index 100% rename from app/components/layout/SearchBar.tsx rename to app/components/ui/SearchBar.tsx