From dc1fdec3e21325038626b98d03dd85f4d01a3f38 Mon Sep 17 00:00:00 2001 From: Daniel Heras Quesada Date: Wed, 7 May 2025 08:09:09 +0200 Subject: [PATCH] feat: home module create to better organize the code --- front/src/app/(home)/layout.tsx | 2 +- front/src/modules/{common => home}/layouts/home/home.layout.tsx | 2 +- .../src/modules/{common => home}/layouts/home/home.module.scss | 0 front/src/modules/{common => home}/layouts/home/index.ts | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename front/src/modules/{common => home}/layouts/home/home.layout.tsx (85%) rename front/src/modules/{common => home}/layouts/home/home.module.scss (100%) rename front/src/modules/{common => home}/layouts/home/index.ts (100%) diff --git a/front/src/app/(home)/layout.tsx b/front/src/app/(home)/layout.tsx index 24abadc..bd138ec 100644 --- a/front/src/app/(home)/layout.tsx +++ b/front/src/app/(home)/layout.tsx @@ -1 +1 @@ -export { HomeLayout as default } from "@/modules/common/layouts/home"; +export { HomeLayout as default } from "@/modules/home/layouts/home"; diff --git a/front/src/modules/common/layouts/home/home.layout.tsx b/front/src/modules/home/layouts/home/home.layout.tsx similarity index 85% rename from front/src/modules/common/layouts/home/home.layout.tsx rename to front/src/modules/home/layouts/home/home.layout.tsx index e8590cc..44117b3 100644 --- a/front/src/modules/common/layouts/home/home.layout.tsx +++ b/front/src/modules/home/layouts/home/home.layout.tsx @@ -1,8 +1,8 @@ import { PropsWithChildren } from "react"; import styles from "./home.module.scss"; -import NavbarHeader from "../../components/navbar-header"; import UserDropdown from "@/modules/auth/components/user-dropdown"; +import NavbarHeader from "@/modules/common/components/navbar-header"; export const HomeLayout: React.FC = ({ children }) => { return ( diff --git a/front/src/modules/common/layouts/home/home.module.scss b/front/src/modules/home/layouts/home/home.module.scss similarity index 100% rename from front/src/modules/common/layouts/home/home.module.scss rename to front/src/modules/home/layouts/home/home.module.scss diff --git a/front/src/modules/common/layouts/home/index.ts b/front/src/modules/home/layouts/home/index.ts similarity index 100% rename from front/src/modules/common/layouts/home/index.ts rename to front/src/modules/home/layouts/home/index.ts