From 3fd956cd5febec8f30d2e6860b09926bcaeb3cd3 Mon Sep 17 00:00:00 2001 From: yoonc01 <143938662+yoonc01@users.noreply.github.com> Date: Wed, 5 Feb 2025 20:49:10 +0900 Subject: [PATCH 1/8] feat: move modalContents to src/components/modalContent --- .../modalContent}/CreditShortageModalContent.jsx | 0 .../modalContent}/DonationModalContent.jsx | 0 .../modalContent}/RechargeModalContent.jsx | 0 src/pages/listPage/ListPage.jsx | 6 +++--- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/{pages/listPage => components/modalContent}/CreditShortageModalContent.jsx (100%) rename src/{pages/listPage => components/modalContent}/DonationModalContent.jsx (100%) rename src/{pages/listPage => components/modalContent}/RechargeModalContent.jsx (100%) diff --git a/src/pages/listPage/CreditShortageModalContent.jsx b/src/components/modalContent/CreditShortageModalContent.jsx similarity index 100% rename from src/pages/listPage/CreditShortageModalContent.jsx rename to src/components/modalContent/CreditShortageModalContent.jsx diff --git a/src/pages/listPage/DonationModalContent.jsx b/src/components/modalContent/DonationModalContent.jsx similarity index 100% rename from src/pages/listPage/DonationModalContent.jsx rename to src/components/modalContent/DonationModalContent.jsx diff --git a/src/pages/listPage/RechargeModalContent.jsx b/src/components/modalContent/RechargeModalContent.jsx similarity index 100% rename from src/pages/listPage/RechargeModalContent.jsx rename to src/components/modalContent/RechargeModalContent.jsx diff --git a/src/pages/listPage/ListPage.jsx b/src/pages/listPage/ListPage.jsx index 3d2d743..c1eeb2a 100644 --- a/src/pages/listPage/ListPage.jsx +++ b/src/pages/listPage/ListPage.jsx @@ -3,11 +3,11 @@ import Modal from '@/components/Modal'; import Header from '@/components/Header'; import CreditSection from '@/pages/listPage/CreditSection'; import { getCredits } from '@/utils/creditStorage'; -import RechargeModalContent from '@/pages/listPage/RechargeModalContent'; +import RechargeModalContent from '@/components/modalContent/RechargeModalContent'; import CreditRechargeSuccess from '@/pages/listPage/CreditRechargeSuccess'; -import CreditShortageModalContent from '@/pages/listPage/CreditShortageModalContent'; +import CreditShortageModalContent from '@/components/modalContent/CreditShortageModalContent'; import DonationsList from '@/pages/listPage/DonationsList'; -import DonationModalContent from '@/pages/listPage/DonationModalContent'; +import DonationModalContent from '@/components/modalContent/DonationModalContent'; import leftTopGradient from '@/assets/images/leftTopGradient.png'; import DonationSuccess from './DonationSuccess'; import MonthlyChartSection from './MonthlyChartSection'; From f64ded7607a561255b7daeec1511f7296e0f3ff0 Mon Sep 17 00:00:00 2001 From: yoonc01 <143938662+yoonc01@users.noreply.github.com> Date: Wed, 5 Feb 2025 20:53:58 +0900 Subject: [PATCH 2/8] feat: move credit components to src/pages/listPage/credit --- src/pages/listPage/ListPage.jsx | 4 ++-- src/pages/listPage/{ => credit}/CreditRechargeSuccess.jsx | 0 src/pages/listPage/{ => credit}/CreditSection.jsx | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/pages/listPage/{ => credit}/CreditRechargeSuccess.jsx (100%) rename src/pages/listPage/{ => credit}/CreditSection.jsx (100%) diff --git a/src/pages/listPage/ListPage.jsx b/src/pages/listPage/ListPage.jsx index c1eeb2a..4ca3992 100644 --- a/src/pages/listPage/ListPage.jsx +++ b/src/pages/listPage/ListPage.jsx @@ -1,10 +1,10 @@ import { useEffect, useState } from 'react'; import Modal from '@/components/Modal'; import Header from '@/components/Header'; -import CreditSection from '@/pages/listPage/CreditSection'; +import CreditSection from '@/pages/listPage/credit/CreditSection'; import { getCredits } from '@/utils/creditStorage'; import RechargeModalContent from '@/components/modalContent/RechargeModalContent'; -import CreditRechargeSuccess from '@/pages/listPage/CreditRechargeSuccess'; +import CreditRechargeSuccess from '@/pages/listPage/credit/CreditRechargeSuccess'; import CreditShortageModalContent from '@/components/modalContent/CreditShortageModalContent'; import DonationsList from '@/pages/listPage/DonationsList'; import DonationModalContent from '@/components/modalContent/DonationModalContent'; diff --git a/src/pages/listPage/CreditRechargeSuccess.jsx b/src/pages/listPage/credit/CreditRechargeSuccess.jsx similarity index 100% rename from src/pages/listPage/CreditRechargeSuccess.jsx rename to src/pages/listPage/credit/CreditRechargeSuccess.jsx diff --git a/src/pages/listPage/CreditSection.jsx b/src/pages/listPage/credit/CreditSection.jsx similarity index 100% rename from src/pages/listPage/CreditSection.jsx rename to src/pages/listPage/credit/CreditSection.jsx From 687d89bad7b10d6cd733640d94cb2c24f181d630 Mon Sep 17 00:00:00 2001 From: yoonc01 <143938662+yoonc01@users.noreply.github.com> Date: Wed, 5 Feb 2025 20:57:18 +0900 Subject: [PATCH 3/8] feat: move donation components to src/page/listPage/donation --- src/pages/listPage/ListPage.jsx | 4 ++-- src/pages/listPage/{ => donation}/DonationCard.jsx | 0 src/pages/listPage/{ => donation}/DonationSuccess.jsx | 0 src/pages/listPage/{ => donation}/DonationsList.jsx | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/pages/listPage/{ => donation}/DonationCard.jsx (100%) rename src/pages/listPage/{ => donation}/DonationSuccess.jsx (100%) rename src/pages/listPage/{ => donation}/DonationsList.jsx (98%) diff --git a/src/pages/listPage/ListPage.jsx b/src/pages/listPage/ListPage.jsx index 4ca3992..c421959 100644 --- a/src/pages/listPage/ListPage.jsx +++ b/src/pages/listPage/ListPage.jsx @@ -6,10 +6,10 @@ import { getCredits } from '@/utils/creditStorage'; import RechargeModalContent from '@/components/modalContent/RechargeModalContent'; import CreditRechargeSuccess from '@/pages/listPage/credit/CreditRechargeSuccess'; import CreditShortageModalContent from '@/components/modalContent/CreditShortageModalContent'; -import DonationsList from '@/pages/listPage/DonationsList'; +import DonationsList from '@/pages/listPage/donation/DonationsList'; import DonationModalContent from '@/components/modalContent/DonationModalContent'; import leftTopGradient from '@/assets/images/leftTopGradient.png'; -import DonationSuccess from './DonationSuccess'; +import DonationSuccess from '@/pages/listPage/donation/DonationSuccess'; import MonthlyChartSection from './MonthlyChartSection'; function ListPage() { diff --git a/src/pages/listPage/DonationCard.jsx b/src/pages/listPage/donation/DonationCard.jsx similarity index 100% rename from src/pages/listPage/DonationCard.jsx rename to src/pages/listPage/donation/DonationCard.jsx diff --git a/src/pages/listPage/DonationSuccess.jsx b/src/pages/listPage/donation/DonationSuccess.jsx similarity index 100% rename from src/pages/listPage/DonationSuccess.jsx rename to src/pages/listPage/donation/DonationSuccess.jsx diff --git a/src/pages/listPage/DonationsList.jsx b/src/pages/listPage/donation/DonationsList.jsx similarity index 98% rename from src/pages/listPage/DonationsList.jsx rename to src/pages/listPage/donation/DonationsList.jsx index 45c400b..5b95c50 100644 --- a/src/pages/listPage/DonationsList.jsx +++ b/src/pages/listPage/donation/DonationsList.jsx @@ -1,6 +1,6 @@ import { useEffect, useState, useRef } from 'react'; import { getItems } from '@/apis/donationApi'; -import DonationCard from '@/pages/listPage/DonationCard'; +import DonationCard from '@/pages/listPage/donation/DonationCard'; import prevIcon from '@/assets/icons/prevIcon.svg'; import nextIcon from '@/assets/icons/nextIcon.svg'; From e9cafd79c0c7acaaac1ad150655a1978e4c76a15 Mon Sep 17 00:00:00 2001 From: yoonc01 <143938662+yoonc01@users.noreply.github.com> Date: Wed, 5 Feb 2025 21:00:48 +0900 Subject: [PATCH 4/8] feat: move monthlychart components to src/pages/listPage/monthlyChart --- src/pages/listPage/ListPage.jsx | 2 +- src/pages/listPage/{ => monthlyChart}/MonthlyChartItem.jsx | 0 src/pages/listPage/{ => monthlyChart}/MonthlyChartList.jsx | 3 +-- src/pages/listPage/{ => monthlyChart}/MonthlyChartSection.jsx | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) rename src/pages/listPage/{ => monthlyChart}/MonthlyChartItem.jsx (100%) rename src/pages/listPage/{ => monthlyChart}/MonthlyChartList.jsx (86%) rename src/pages/listPage/{ => monthlyChart}/MonthlyChartSection.jsx (97%) diff --git a/src/pages/listPage/ListPage.jsx b/src/pages/listPage/ListPage.jsx index c421959..9e6b554 100644 --- a/src/pages/listPage/ListPage.jsx +++ b/src/pages/listPage/ListPage.jsx @@ -10,7 +10,7 @@ import DonationsList from '@/pages/listPage/donation/DonationsList'; import DonationModalContent from '@/components/modalContent/DonationModalContent'; import leftTopGradient from '@/assets/images/leftTopGradient.png'; import DonationSuccess from '@/pages/listPage/donation/DonationSuccess'; -import MonthlyChartSection from './MonthlyChartSection'; +import MonthlyChartSection from '@/pages/listPage/monthlyChart/MonthlyChartSection'; function ListPage() { const [isModalOpen, setIsModalOpen] = useState(false); diff --git a/src/pages/listPage/MonthlyChartItem.jsx b/src/pages/listPage/monthlyChart/MonthlyChartItem.jsx similarity index 100% rename from src/pages/listPage/MonthlyChartItem.jsx rename to src/pages/listPage/monthlyChart/MonthlyChartItem.jsx diff --git a/src/pages/listPage/MonthlyChartList.jsx b/src/pages/listPage/monthlyChart/MonthlyChartList.jsx similarity index 86% rename from src/pages/listPage/MonthlyChartList.jsx rename to src/pages/listPage/monthlyChart/MonthlyChartList.jsx index edda8b7..5e78420 100644 --- a/src/pages/listPage/MonthlyChartList.jsx +++ b/src/pages/listPage/monthlyChart/MonthlyChartList.jsx @@ -1,5 +1,4 @@ -import { useEffect } from 'react'; -import MonthlyChartItem from './MonthlyChartItem'; +import MonthlyChartItem from '@/pages/monthlyChart/MonthlyChartItem'; const MonthlyChartList = ({ idols }) => { if (!idols.length === 0) { diff --git a/src/pages/listPage/MonthlyChartSection.jsx b/src/pages/listPage/monthlyChart/MonthlyChartSection.jsx similarity index 97% rename from src/pages/listPage/MonthlyChartSection.jsx rename to src/pages/listPage/monthlyChart/MonthlyChartSection.jsx index dd6f8cb..4ddd23d 100644 --- a/src/pages/listPage/MonthlyChartSection.jsx +++ b/src/pages/listPage/monthlyChart/MonthlyChartSection.jsx @@ -2,7 +2,7 @@ import { useState, useEffect } from 'react'; import chartLogo from '@/assets/icons/chartLogo.svg'; import { getLists } from '@/apis/idolListApi'; import PrimaryButton from '@/components/PrimaryButton'; -import MonthlyChartList from './MonthlyChartList'; +import MonthlyChartList from '@/pages/listPage/monthlyChart/MonthlyChartList'; const MonthlyChartSection = () => { const [gender, setGender] = useState('female'); From de4af54cc0561d5ce5726546e75f21c0877d9c76 Mon Sep 17 00:00:00 2001 From: yoonc01 <143938662+yoonc01@users.noreply.github.com> Date: Wed, 5 Feb 2025 21:09:44 +0900 Subject: [PATCH 5/8] docs: changed directory structure due to files moved --- README.md | 58 +++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 27179ee..0382021 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,19 @@ # 코드잇 스프린트 13기 3팀(파트 2) -> 개발기간: 2025.01.24 ~ + +> 개발기간: 2025.01.24 ~ ## Contributors - +
- - + + - - - - -
팀원역할팀원역할
+ 노현지

노현지

@@ -26,7 +27,7 @@
+ 박재현

박재현

@@ -41,7 +42,7 @@
+ 신주하

신주하

@@ -53,7 +54,7 @@
+ 윤효준

윤효준

@@ -67,7 +68,7 @@
+ 임지혜

임지혜

@@ -137,34 +138,42 @@ feat : #27/Component Base - Button 기능 개발 ``` ## 기술 스택 + #### Environment + ![Visual Studio Code](https://img.shields.io/badge/Visual%20Studio%20Code-0078d7.svg?style=for-the-badge&logo=visual-studio-code&logoColor=white) ![Git](https://img.shields.io/badge/git-%23F05033.svg?style=for-the-badge&logo=git&logoColor=white) ![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white) #### Config + ![NPM](https://img.shields.io/badge/NPM-%23CB3837.svg?style=for-the-badge&logo=npm&logoColor=white) ![Vite](https://img.shields.io/badge/vite-%23646CFF.svg?style=for-the-badge&logo=vite&logoColor=white) #### Linters + ![js](https://img.shields.io/badge/eslint-3A33D1?style=for-the-badge&logo=eslint&logoColor=white) ![js](https://img.shields.io/badge/prettier-1A2C34?style=for-the-badge&logo=prettier&logoColor=F7BA3E) #### Development + ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E) ![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB) ![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge&logo=tailwind-css&logoColor=white) #### communication + ![Discord](https://img.shields.io/badge/Discord-%235865F2.svg?style=for-the-badge&logo=discord&logoColor=white) ![Notion](https://img.shields.io/badge/Notion-%23000000.svg?style=for-the-badge&logo=notion&logoColor=white) #### Deployment + ![Vercel](https://img.shields.io/badge/vercel-%23000000.svg?style=for-the-badge&logo=vercel&logoColor=white) ## 설치 및 실행 방법 ### 로컬 실행 + ``` git clone https://github.com/yoonc01/Fandom-K.git cd Fandom-K @@ -173,27 +182,38 @@ npm run dev ``` ### 배포 주소 + 🚀 프로젝트를 확인하려면 [여기](https://fandom-k-murex.vercel.app/)를 클릭하세요! ## 프로젝트 구조 ``` 📦 src -├──── apis # API 관련 함수 및 관리 파일 +├──── apis # API 관련 함수 및 관리 파일 │ -├──── assets # 이미지 및 정적 파일 관리 -│ ├── icons # 아이콘 관련 파일 +├──── assets # 이미지 및 정적 파일 관리 +│ ├── icons # 아이콘 관련 파일 │ │ -│ └── images # 일반 이미지 파일 +│ └── images # 일반 이미지 파일 │ -├──── components # 공통 컴포넌트 관리 +├──── components # 공통 컴포넌트 관리 +│ │ +│ └── modalContent # 모달창 내용 관리 │ -├──── utils # 유틸리티 함수 관리 +├──── utils # 유틸리티 함수 관리 │ -└──── pages # 라우터 페이지 관리 - ├── landingPage # 랜딩 페이지 관련 파일 +└──── pages # 라우터 페이지 관리 + ├── landingPage # 랜딩 페이지 관련 파일 + │ + ├── listPage # 리스트 페이지 관련 파일 + │ ├── credit # credit 관련 파일 + │ │ + │ ├── donation # donation 관련 파일 + │ │ + │ └── monthlyChart # monthlyChart 관련 파일 │ - ├── listPage # 리스트 페이지 관련 파일 + ├── myPage # myPage 관련 파일 │ - └── myPage # 마이페이지 관련 파일 + └── notFoundPage # 404 에러 페이지 관련 파일 + ``` From 1d8d05098437c79331100a197b13f5adeb21c721 Mon Sep 17 00:00:00 2001 From: yoonc01 <143938662+yoonc01@users.noreply.github.com> Date: Wed, 5 Feb 2025 21:19:20 +0900 Subject: [PATCH 6/8] Revert "feat: move monthlychart components to src/pages/listPage/monthlyChart" This reverts commit e9cafd79c0c7acaaac1ad150655a1978e4c76a15. --- src/pages/listPage/ListPage.jsx | 2 +- src/pages/listPage/{monthlyChart => }/MonthlyChartItem.jsx | 0 src/pages/listPage/{monthlyChart => }/MonthlyChartList.jsx | 3 ++- src/pages/listPage/{monthlyChart => }/MonthlyChartSection.jsx | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) rename src/pages/listPage/{monthlyChart => }/MonthlyChartItem.jsx (100%) rename src/pages/listPage/{monthlyChart => }/MonthlyChartList.jsx (86%) rename src/pages/listPage/{monthlyChart => }/MonthlyChartSection.jsx (97%) diff --git a/src/pages/listPage/ListPage.jsx b/src/pages/listPage/ListPage.jsx index 9e6b554..c421959 100644 --- a/src/pages/listPage/ListPage.jsx +++ b/src/pages/listPage/ListPage.jsx @@ -10,7 +10,7 @@ import DonationsList from '@/pages/listPage/donation/DonationsList'; import DonationModalContent from '@/components/modalContent/DonationModalContent'; import leftTopGradient from '@/assets/images/leftTopGradient.png'; import DonationSuccess from '@/pages/listPage/donation/DonationSuccess'; -import MonthlyChartSection from '@/pages/listPage/monthlyChart/MonthlyChartSection'; +import MonthlyChartSection from './MonthlyChartSection'; function ListPage() { const [isModalOpen, setIsModalOpen] = useState(false); diff --git a/src/pages/listPage/monthlyChart/MonthlyChartItem.jsx b/src/pages/listPage/MonthlyChartItem.jsx similarity index 100% rename from src/pages/listPage/monthlyChart/MonthlyChartItem.jsx rename to src/pages/listPage/MonthlyChartItem.jsx diff --git a/src/pages/listPage/monthlyChart/MonthlyChartList.jsx b/src/pages/listPage/MonthlyChartList.jsx similarity index 86% rename from src/pages/listPage/monthlyChart/MonthlyChartList.jsx rename to src/pages/listPage/MonthlyChartList.jsx index 5e78420..edda8b7 100644 --- a/src/pages/listPage/monthlyChart/MonthlyChartList.jsx +++ b/src/pages/listPage/MonthlyChartList.jsx @@ -1,4 +1,5 @@ -import MonthlyChartItem from '@/pages/monthlyChart/MonthlyChartItem'; +import { useEffect } from 'react'; +import MonthlyChartItem from './MonthlyChartItem'; const MonthlyChartList = ({ idols }) => { if (!idols.length === 0) { diff --git a/src/pages/listPage/monthlyChart/MonthlyChartSection.jsx b/src/pages/listPage/MonthlyChartSection.jsx similarity index 97% rename from src/pages/listPage/monthlyChart/MonthlyChartSection.jsx rename to src/pages/listPage/MonthlyChartSection.jsx index 4ddd23d..dd6f8cb 100644 --- a/src/pages/listPage/monthlyChart/MonthlyChartSection.jsx +++ b/src/pages/listPage/MonthlyChartSection.jsx @@ -2,7 +2,7 @@ import { useState, useEffect } from 'react'; import chartLogo from '@/assets/icons/chartLogo.svg'; import { getLists } from '@/apis/idolListApi'; import PrimaryButton from '@/components/PrimaryButton'; -import MonthlyChartList from '@/pages/listPage/monthlyChart/MonthlyChartList'; +import MonthlyChartList from './MonthlyChartList'; const MonthlyChartSection = () => { const [gender, setGender] = useState('female'); From 9ce66dff90b5199503b97ecc4bec6af722a65aae Mon Sep 17 00:00:00 2001 From: yoonc01 <143938662+yoonc01@users.noreply.github.com> Date: Wed, 5 Feb 2025 21:23:40 +0900 Subject: [PATCH 7/8] feat: move monthlyChart components to src/pages/listPage/monthlyChart --- src/pages/listPage/ListPage.jsx | 2 +- src/pages/listPage/{ => monthlyChart}/MonthlyChartItem.jsx | 0 src/pages/listPage/{ => monthlyChart}/MonthlyChartList.jsx | 3 +-- src/pages/listPage/{ => monthlyChart}/MonthlyChartSection.jsx | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) rename src/pages/listPage/{ => monthlyChart}/MonthlyChartItem.jsx (100%) rename src/pages/listPage/{ => monthlyChart}/MonthlyChartList.jsx (86%) rename src/pages/listPage/{ => monthlyChart}/MonthlyChartSection.jsx (97%) diff --git a/src/pages/listPage/ListPage.jsx b/src/pages/listPage/ListPage.jsx index c421959..9e6b554 100644 --- a/src/pages/listPage/ListPage.jsx +++ b/src/pages/listPage/ListPage.jsx @@ -10,7 +10,7 @@ import DonationsList from '@/pages/listPage/donation/DonationsList'; import DonationModalContent from '@/components/modalContent/DonationModalContent'; import leftTopGradient from '@/assets/images/leftTopGradient.png'; import DonationSuccess from '@/pages/listPage/donation/DonationSuccess'; -import MonthlyChartSection from './MonthlyChartSection'; +import MonthlyChartSection from '@/pages/listPage/monthlyChart/MonthlyChartSection'; function ListPage() { const [isModalOpen, setIsModalOpen] = useState(false); diff --git a/src/pages/listPage/MonthlyChartItem.jsx b/src/pages/listPage/monthlyChart/MonthlyChartItem.jsx similarity index 100% rename from src/pages/listPage/MonthlyChartItem.jsx rename to src/pages/listPage/monthlyChart/MonthlyChartItem.jsx diff --git a/src/pages/listPage/MonthlyChartList.jsx b/src/pages/listPage/monthlyChart/MonthlyChartList.jsx similarity index 86% rename from src/pages/listPage/MonthlyChartList.jsx rename to src/pages/listPage/monthlyChart/MonthlyChartList.jsx index edda8b7..2fe7384 100644 --- a/src/pages/listPage/MonthlyChartList.jsx +++ b/src/pages/listPage/monthlyChart/MonthlyChartList.jsx @@ -1,5 +1,4 @@ -import { useEffect } from 'react'; -import MonthlyChartItem from './MonthlyChartItem'; +import MonthlyChartItem from '@/pages/listPage/monthlyChart/MonthlyChartItem'; const MonthlyChartList = ({ idols }) => { if (!idols.length === 0) { diff --git a/src/pages/listPage/MonthlyChartSection.jsx b/src/pages/listPage/monthlyChart/MonthlyChartSection.jsx similarity index 97% rename from src/pages/listPage/MonthlyChartSection.jsx rename to src/pages/listPage/monthlyChart/MonthlyChartSection.jsx index dd6f8cb..4ddd23d 100644 --- a/src/pages/listPage/MonthlyChartSection.jsx +++ b/src/pages/listPage/monthlyChart/MonthlyChartSection.jsx @@ -2,7 +2,7 @@ import { useState, useEffect } from 'react'; import chartLogo from '@/assets/icons/chartLogo.svg'; import { getLists } from '@/apis/idolListApi'; import PrimaryButton from '@/components/PrimaryButton'; -import MonthlyChartList from './MonthlyChartList'; +import MonthlyChartList from '@/pages/listPage/monthlyChart/MonthlyChartList'; const MonthlyChartSection = () => { const [gender, setGender] = useState('female'); From fc82af4e86d94f4c753ea23809322e88aeff331c Mon Sep 17 00:00:00 2001 From: yoonc01 <143938662+yoonc01@users.noreply.github.com> Date: Wed, 5 Feb 2025 22:14:52 +0900 Subject: [PATCH 8/8] feat: move modal contents to src/components/modalContent --- .../modalContent}/CreditRechargeSuccess.jsx | 0 .../donation => components/modalContent}/DonationSuccess.jsx | 0 src/pages/listPage/ListPage.jsx | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{pages/listPage/credit => components/modalContent}/CreditRechargeSuccess.jsx (100%) rename src/{pages/listPage/donation => components/modalContent}/DonationSuccess.jsx (100%) diff --git a/src/pages/listPage/credit/CreditRechargeSuccess.jsx b/src/components/modalContent/CreditRechargeSuccess.jsx similarity index 100% rename from src/pages/listPage/credit/CreditRechargeSuccess.jsx rename to src/components/modalContent/CreditRechargeSuccess.jsx diff --git a/src/pages/listPage/donation/DonationSuccess.jsx b/src/components/modalContent/DonationSuccess.jsx similarity index 100% rename from src/pages/listPage/donation/DonationSuccess.jsx rename to src/components/modalContent/DonationSuccess.jsx diff --git a/src/pages/listPage/ListPage.jsx b/src/pages/listPage/ListPage.jsx index 9e6b554..51443bb 100644 --- a/src/pages/listPage/ListPage.jsx +++ b/src/pages/listPage/ListPage.jsx @@ -4,12 +4,12 @@ import Header from '@/components/Header'; import CreditSection from '@/pages/listPage/credit/CreditSection'; import { getCredits } from '@/utils/creditStorage'; import RechargeModalContent from '@/components/modalContent/RechargeModalContent'; -import CreditRechargeSuccess from '@/pages/listPage/credit/CreditRechargeSuccess'; +import CreditRechargeSuccess from '@/components/modalContent/CreditRechargeSuccess'; import CreditShortageModalContent from '@/components/modalContent/CreditShortageModalContent'; import DonationsList from '@/pages/listPage/donation/DonationsList'; import DonationModalContent from '@/components/modalContent/DonationModalContent'; import leftTopGradient from '@/assets/images/leftTopGradient.png'; -import DonationSuccess from '@/pages/listPage/donation/DonationSuccess'; +import DonationSuccess from '@/components/modalContent/DonationSuccess'; import MonthlyChartSection from '@/pages/listPage/monthlyChart/MonthlyChartSection'; function ListPage() {