From b49e5e277dd56727884ba5e5edf221305c850090 Mon Sep 17 00:00:00 2001 From: caadiq Date: Thu, 22 Jan 2026 11:38:09 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=A9=A4=EB=B2=84=20=EC=98=81?= =?UTF-8?q?=EC=96=B4=EC=9D=B4=EB=A6=84=20=ED=95=98=EB=93=9C=EC=BD=94?= =?UTF-8?q?=EB=94=A9=20=EC=A0=9C=EA=B1=B0,=20API=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EA=B0=80=EC=A0=B8=EC=98=A4=EB=8F=84=EB=A1=9D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - MEMBER_ENGLISH_NAMES 상수 제거 - Birthday 페이지에서 member.name_en 사용 Co-Authored-By: Claude Opus 4.5 --- frontend-temp/src/constants/index.js | 13 ------------- .../src/pages/schedule/mobile/Birthday.jsx | 6 ++---- frontend-temp/src/pages/schedule/pc/Birthday.jsx | 6 ++---- 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/frontend-temp/src/constants/index.js b/frontend-temp/src/constants/index.js index 5f325f5..7b52724 100644 --- a/frontend-temp/src/constants/index.js +++ b/frontend-temp/src/constants/index.js @@ -57,16 +57,3 @@ export const MONTH_NAMES = [ '1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월', ]; - -/** 멤버 한글 이름 → 영어 이름 매핑 */ -export const MEMBER_ENGLISH_NAMES = { - 송하영: 'HAYOUNG', - 박지원: 'JIWON', - 이채영: 'CHAEYOUNG', - 이나경: 'NAKYUNG', - 백지헌: 'JIHEON', - 장규리: 'GYURI', - 이새롬: 'SAEROM', - 노지선: 'JISUN', - 이서연: 'SEOYEON', -}; diff --git a/frontend-temp/src/pages/schedule/mobile/Birthday.jsx b/frontend-temp/src/pages/schedule/mobile/Birthday.jsx index 420c9e1..70ef363 100644 --- a/frontend-temp/src/pages/schedule/mobile/Birthday.jsx +++ b/frontend-temp/src/pages/schedule/mobile/Birthday.jsx @@ -3,7 +3,6 @@ import { useQuery } from '@tanstack/react-query'; import { motion } from 'framer-motion'; import { ChevronLeft } from 'lucide-react'; import { fetchApi } from '@/api/client'; -import { MEMBER_ENGLISH_NAMES } from '@/constants'; /** * Mobile 생일 페이지 @@ -13,7 +12,6 @@ function MobileBirthday() { // URL 디코딩 const decodedMemberName = decodeURIComponent(memberName || ''); - const englishName = MEMBER_ENGLISH_NAMES[decodedMemberName]; // 멤버 정보 조회 const { @@ -61,7 +59,7 @@ function MobileBirthday() {
- HAPPY {englishName} DAY + HAPPY {member?.name_en} DAY
@@ -98,7 +96,7 @@ function MobileBirthday() {
🎂 -

HAPPY {englishName} DAY

+

HAPPY {member?.name_en} DAY

{year}년 {birthdayThisYear?.getMonth() + 1}월 {birthdayThisYear?.getDate()}일 diff --git a/frontend-temp/src/pages/schedule/pc/Birthday.jsx b/frontend-temp/src/pages/schedule/pc/Birthday.jsx index 77da9cd..a59256f 100644 --- a/frontend-temp/src/pages/schedule/pc/Birthday.jsx +++ b/frontend-temp/src/pages/schedule/pc/Birthday.jsx @@ -3,7 +3,6 @@ import { useQuery } from '@tanstack/react-query'; import { motion } from 'framer-motion'; import { ChevronRight } from 'lucide-react'; import { fetchApi } from '@/api/client'; -import { MEMBER_ENGLISH_NAMES } from '@/constants'; /** * PC 생일 페이지 @@ -13,7 +12,6 @@ function PCBirthday() { // URL 디코딩 const decodedMemberName = decodeURIComponent(memberName || ''); - const englishName = MEMBER_ENGLISH_NAMES[decodedMemberName]; // 멤버 정보 조회 const { @@ -61,7 +59,7 @@ function PCBirthday() { - HAPPY {englishName} DAY + HAPPY {member?.name_en} DAY

@@ -96,7 +94,7 @@ function PCBirthday() {
🎂 -

HAPPY {englishName} DAY

+

HAPPY {member?.name_en} DAY

{year}년 {birthdayThisYear?.getMonth() + 1}월 {birthdayThisYear?.getDate()}일