From c973834133c31a5144bc59036c38895a707d48c0 Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Thu, 12 Mar 2026 14:57:10 +0100 Subject: [PATCH] Rename Home page component files --- src/pages/Home/HomePage.jsx | 4 ++-- .../Home/components/Calendar/{calendar.jsx => Calendar.jsx} | 2 +- .../Calendar/{calendar.module.css => Calendar.module.css} | 0 .../components/EventList/{eventItem.tsx => EventItem.tsx} | 2 +- .../EventList/{eventList.module.css => EventList.module.css} | 0 .../components/EventList/{eventList.tsx => EventList.tsx} | 4 ++-- 6 files changed, 6 insertions(+), 6 deletions(-) rename src/pages/Home/components/Calendar/{calendar.jsx => Calendar.jsx} (99%) rename src/pages/Home/components/Calendar/{calendar.module.css => Calendar.module.css} (100%) rename src/pages/Home/components/EventList/{eventItem.tsx => EventItem.tsx} (98%) rename src/pages/Home/components/EventList/{eventList.module.css => EventList.module.css} (100%) rename src/pages/Home/components/EventList/{eventList.tsx => EventList.tsx} (96%) diff --git a/src/pages/Home/HomePage.jsx b/src/pages/Home/HomePage.jsx index 645bd39..3c0c5f4 100644 --- a/src/pages/Home/HomePage.jsx +++ b/src/pages/Home/HomePage.jsx @@ -1,6 +1,6 @@ import styles from "./HomePage.module.css"; -import Calendar from "./components/Calendar/calendar.jsx"; -import EventList from "./components/EventList/eventList.jsx"; +import Calendar from "./components/Calendar/Calendar.jsx"; +import EventList from "./components/EventList/EventList.tsx"; function HomePage() { diff --git a/src/pages/Home/components/Calendar/calendar.jsx b/src/pages/Home/components/Calendar/Calendar.jsx similarity index 99% rename from src/pages/Home/components/Calendar/calendar.jsx rename to src/pages/Home/components/Calendar/Calendar.jsx index 2e9abac..beac47e 100644 --- a/src/pages/Home/components/Calendar/calendar.jsx +++ b/src/pages/Home/components/Calendar/Calendar.jsx @@ -1,5 +1,5 @@ import {useState, useMemo, useEffect, useContext} from "react"; -import styles from "./calendar.module.css"; +import styles from "./Calendar.module.css"; import {formatDateLetterJS} from "../../../../utils/date/formatDateLetter.js"; import {EventContext} from "../../../../contexts/Events/EventContext.js"; import Button from "../../../../components/ui/Button/Button"; diff --git a/src/pages/Home/components/Calendar/calendar.module.css b/src/pages/Home/components/Calendar/Calendar.module.css similarity index 100% rename from src/pages/Home/components/Calendar/calendar.module.css rename to src/pages/Home/components/Calendar/Calendar.module.css diff --git a/src/pages/Home/components/EventList/eventItem.tsx b/src/pages/Home/components/EventList/EventItem.tsx similarity index 98% rename from src/pages/Home/components/EventList/eventItem.tsx rename to src/pages/Home/components/EventList/EventItem.tsx index 9cd3de9..185f09d 100644 --- a/src/pages/Home/components/EventList/eventItem.tsx +++ b/src/pages/Home/components/EventList/EventItem.tsx @@ -1,4 +1,4 @@ -import styles from "./eventList.module.css"; +import styles from "./EventList.module.css"; import { formatDateLetter } from "../../../../utils/date/formatDateLetter"; import { useState } from "react"; diff --git a/src/pages/Home/components/EventList/eventList.module.css b/src/pages/Home/components/EventList/EventList.module.css similarity index 100% rename from src/pages/Home/components/EventList/eventList.module.css rename to src/pages/Home/components/EventList/EventList.module.css diff --git a/src/pages/Home/components/EventList/eventList.tsx b/src/pages/Home/components/EventList/EventList.tsx similarity index 96% rename from src/pages/Home/components/EventList/eventList.tsx rename to src/pages/Home/components/EventList/EventList.tsx index bb7ff83..711d057 100644 --- a/src/pages/Home/components/EventList/eventList.tsx +++ b/src/pages/Home/components/EventList/EventList.tsx @@ -34,8 +34,8 @@ function EventList() { export default EventList;*/ import { useMemo, useContext } from "react"; -import styles from "./eventList.module.css"; -import EventItem from "./eventItem"; +import styles from "./EventList.module.css"; +import EventItem from "./EventItem"; import { EventContext } from "../../../../contexts/Events/EventContext"; type Task = {