From 3aac644bc88c63f73c98b58ab8c521dc7a5bfaf1 Mon Sep 17 00:00:00 2001
From: HyunJinNo
Date: Sat, 21 Sep 2024 20:35:44 +0900
Subject: [PATCH] =?UTF-8?q?Refactor:=20=EB=AA=A8=EC=9E=84=20=ED=8E=98?=
=?UTF-8?q?=EC=9D=B4=EC=A7=80=EB=84=A4=EC=9D=B4=EC=85=98=EC=97=90=EC=84=9C?=
=?UTF-8?q?=20=EB=B3=B8=EB=AA=85=20=EB=8C=80=EC=8B=A0=20=EB=8B=89=EB=84=A4?=
=?UTF-8?q?=EC=9E=84=20=ED=91=9C=EC=8B=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/common/GatheringItem.tsx | 2 +-
src/components/common/GatheringItemHome.tsx | 2 +-
src/types/GatheringDto.ts | 19 ++++++++++---------
3 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/src/components/common/GatheringItem.tsx b/src/components/common/GatheringItem.tsx
index e8789cda..ec7acf3e 100644
--- a/src/components/common/GatheringItem.tsx
+++ b/src/components/common/GatheringItem.tsx
@@ -63,7 +63,7 @@ const GatheringItem = ({ data }: IGatheringItem) => {
{data.title}
- {data.userName}
+ {data.nickname}
{/* 마감일 포함 영역 */}
diff --git a/src/components/common/GatheringItemHome.tsx b/src/components/common/GatheringItemHome.tsx
index 7e5bcac7..f4906edf 100644
--- a/src/components/common/GatheringItemHome.tsx
+++ b/src/components/common/GatheringItemHome.tsx
@@ -57,7 +57,7 @@ const GatheringItemHome = ({ data }: IGatheringItemHome) => {
{data.title}
- {data.userName}
+ {data.nickname}
diff --git a/src/types/GatheringDto.ts b/src/types/GatheringDto.ts
index f3f24978..eeaa8867 100644
--- a/src/types/GatheringDto.ts
+++ b/src/types/GatheringDto.ts
@@ -22,7 +22,6 @@ export interface TopGatheringResponseDto {
title: string;
}
-
// types.ts
type UserPostingResponse = {
@@ -40,7 +39,10 @@ export type PlaceResponse = {
};
type ZoneCategoryResponse = {
- parentZoneCategory: { parentZoneCategory: null | ZoneCategoryResponse; name: string } | null;
+ parentZoneCategory: {
+ parentZoneCategory: null | ZoneCategoryResponse;
+ name: string;
+ } | null;
name: string;
};
@@ -53,7 +55,7 @@ export type GatheringRecommend = {
isBookMark: boolean;
likeCount: number;
gatheringCategoryName: string;
- userName: string;
+ nickname: string;
scheduleStartDate: string;
scheduleEndDate: string;
deadline: string;
@@ -74,8 +76,8 @@ export interface gatheringApplicantsResponsesDto {
nickname: string;
age: number;
sex: string;
- },
- gatheringStatus: 'WAIT' | 'CONSENT' | 'REFUSE'
+ };
+ gatheringStatus: "WAIT" | "CONSENT" | "REFUSE";
}
export interface GatheringDetailResponseDto {
@@ -104,8 +106,7 @@ export interface GatheringDetailResponseDto {
gatheringStatus: string;
openChattingUrl: string;
userImage: string;
-};
-
+}
// 모임 리스트 조회
@@ -118,7 +119,7 @@ export interface Gathering {
isBookMark: boolean;
likeCount: number;
gatheringCategoryName: string;
- userName: string;
+ nickname: string;
scheduleStartDate: string; // ISO 8601 format
scheduleEndDate: string; // ISO 8601 format
deadline: string; // ISO 8601 format
@@ -160,4 +161,4 @@ export interface GatheringsResponse {
numberOfElements: number;
pageable: Pageable;
empty: boolean;
-}
\ No newline at end of file
+}