From e264583aee19499e97848d2276dcf4b02907a4c2 Mon Sep 17 00:00:00 2001 From: heeyongKim <166043860+heeeeyong@users.noreply.github.com> Date: Thu, 28 Aug 2025 16:00:34 +0900 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=EB=B3=80=EC=88=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/feed/MyFeed.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/feed/MyFeed.tsx b/src/components/feed/MyFeed.tsx index abfc8936..02cd513a 100644 --- a/src/components/feed/MyFeed.tsx +++ b/src/components/feed/MyFeed.tsx @@ -41,7 +41,7 @@ const MyFeed = ({ showHeader, posts = [], isLast = false }: FeedListProps) => { return ( Date: Thu, 28 Aug 2025 16:51:06 +0900 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=EB=82=98=EB=A5=BC=20=EB=9D=B1?= =?UTF-8?q?=ED=95=9C=20=EC=82=AC=EB=9E=8C=EB=93=A4=20=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EA=B8=B0=EB=8A=A5=20=EB=A1=9C=EC=A7=81=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/feed/MyFeed.tsx | 2 +- src/components/feed/MyFollower.tsx | 8 ++++---- src/components/feed/Profile.tsx | 4 +--- src/types/profile.ts | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/components/feed/MyFeed.tsx b/src/components/feed/MyFeed.tsx index 02cd513a..9aa5fab7 100644 --- a/src/components/feed/MyFeed.tsx +++ b/src/components/feed/MyFeed.tsx @@ -41,7 +41,7 @@ const MyFeed = ({ showHeader, posts = [], isLast = false }: FeedListProps) => { return ( { const navigate = useNavigate(); const handleMoreClick = () => { - if (creatorId) { - navigate(`/follow/followerlist/${creatorId}`); + if (userId) { + navigate(`/follow/followerlist/${userId}`); } }; diff --git a/src/components/feed/Profile.tsx b/src/components/feed/Profile.tsx index 399ae674..0538c2d6 100644 --- a/src/components/feed/Profile.tsx +++ b/src/components/feed/Profile.tsx @@ -13,7 +13,6 @@ export interface ProfileProps { aliasColor: string; followerCount: number; latestFollowerProfileImageUrls?: string[]; - creatorId?: number; userId?: number; isMyFeed?: boolean; } @@ -27,7 +26,6 @@ const Profile = ({ aliasColor, followerCount, latestFollowerProfileImageUrls = [], - creatorId, userId, isMyFeed, }: ProfileProps) => { @@ -94,7 +92,7 @@ const Profile = ({ ); diff --git a/src/types/profile.ts b/src/types/profile.ts index 9d6deb73..8fb87db7 100644 --- a/src/types/profile.ts +++ b/src/types/profile.ts @@ -1,8 +1,8 @@ // 내 프로필 정보 타입 export interface MyProfileData { - creatorId: number; - userId: number; + creatorId?: number; profileImageUrl: string; + userId?: number; nickname: string; aliasName: string; aliasColor: string; From fa3582e163f8d8e9f14347847f20a8e2547d4090 Mon Sep 17 00:00:00 2001 From: heeyongKim <166043860+heeeeyong@users.noreply.github.com> Date: Thu, 28 Aug 2025 17:11:06 +0900 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20input,=20textarea=20=ED=83=9C?= =?UTF-8?q?=EA=B7=B8=20=EC=A0=84=EC=97=AD=EC=8A=A4=ED=83=80=EC=9D=BC=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/createpost/PostContentSection.styled.ts | 1 - src/components/recordwrite/RecordContentSection.styled.ts | 1 - src/components/search/SearchBar.tsx | 1 - src/components/today-words/MessageInput.styled.ts | 1 - src/pages/groupSearch/GroupSearch.tsx | 2 +- src/pages/search/Search.tsx | 2 +- src/styles/global/global.ts | 4 +++- 7 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/createpost/PostContentSection.styled.ts b/src/components/createpost/PostContentSection.styled.ts index 1fe62c17..756bcb87 100644 --- a/src/components/createpost/PostContentSection.styled.ts +++ b/src/components/createpost/PostContentSection.styled.ts @@ -12,7 +12,6 @@ export const TextArea = styled.textarea<{ readOnly?: boolean }>` min-height: 100px; background-color: ${props => (props.readOnly ? '#f5f5f5' : semanticColors.background.primary)}; color: ${semanticColors.text.secondary}; - font-size: ${typography.fontSize.sm}; font-weight: ${typography.fontWeight.regular}; font-family: ${typography.fontFamily.primary}; resize: none; diff --git a/src/components/recordwrite/RecordContentSection.styled.ts b/src/components/recordwrite/RecordContentSection.styled.ts index 9e45312d..820a4f07 100644 --- a/src/components/recordwrite/RecordContentSection.styled.ts +++ b/src/components/recordwrite/RecordContentSection.styled.ts @@ -26,7 +26,6 @@ export const TextArea = styled.textarea` max-height: 200px; background-color: ${semanticColors.background.primary}; color: ${semanticColors.text.secondary}; - font-size: ${typography.fontSize.sm}; font-weight: ${typography.fontWeight.regular}; font-family: ${typography.fontFamily.primary}; line-height: 1.5; diff --git a/src/components/search/SearchBar.tsx b/src/components/search/SearchBar.tsx index 18896605..6b3e5ce7 100644 --- a/src/components/search/SearchBar.tsx +++ b/src/components/search/SearchBar.tsx @@ -72,7 +72,6 @@ const Input = styled.input` border: none; background: transparent; color: #ffffff; - font-size: 14px; padding: 8px 0; box-sizing: border-box; caret-color: var(--color-neongreen); diff --git a/src/components/today-words/MessageInput.styled.ts b/src/components/today-words/MessageInput.styled.ts index b85f6ea1..61082502 100644 --- a/src/components/today-words/MessageInput.styled.ts +++ b/src/components/today-words/MessageInput.styled.ts @@ -65,7 +65,6 @@ export const MessageInput = styled.textarea` border: none; padding: 10px 58px 10px 12px; color: ${semanticColors.text.primary}; - font-size: ${typography.fontSize.sm}; font-weight: ${typography.fontWeight.regular}; font-family: ${typography.fontFamily.primary}; line-height: 1.4; diff --git a/src/pages/groupSearch/GroupSearch.tsx b/src/pages/groupSearch/GroupSearch.tsx index 1e4d5e42..064987e4 100644 --- a/src/pages/groupSearch/GroupSearch.tsx +++ b/src/pages/groupSearch/GroupSearch.tsx @@ -258,7 +258,7 @@ const GroupSearch = () => { /> { )} handleSearch(searchTerm.trim(), true)} diff --git a/src/styles/global/global.ts b/src/styles/global/global.ts index 487c549b..6bc8d509 100644 --- a/src/styles/global/global.ts +++ b/src/styles/global/global.ts @@ -208,8 +208,10 @@ export const globalStyles = css` } /* Input 요소 전역 스타일 */ - input { + input, + textarea { caret-color: ${colors.neongreen}; + font-size: ${typography.fontSize.base}; } ${coreDesignTokens} From 783250beecd53396569c0775baa392630062cb74 Mon Sep 17 00:00:00 2001 From: heeyongKim <166043860+heeeeyong@users.noreply.github.com> Date: Thu, 28 Aug 2025 17:11:34 +0900 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20=EB=A1=9C=EC=BB=AC=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=EC=9A=A9=20=EC=A3=BC=EC=84=9D=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 7 ++----- src/pages/feed/Feed.tsx | 7 ++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 79258320..10a237c1 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -12,11 +12,6 @@ export const apiClient = axios.create({ }, withCredentials: true, // 쿠키 자동 전송 설정 }); - -// 임시 하드코딩된 토큰 (쿠키가 없을 때 사용) -// const TEMP_ACCESS_TOKEN = -// 'eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOjEsImlhdCI6MTc1NDM4MjY1MiwiZXhwIjoxNzU2OTc0NjUyfQ.BSGuoMWlrzc0oKgSJXHEycxdzzY9-e7gD4xh-wSDemc'; - // Request 인터셉터: localStorage의 토큰을 헤더에 자동 추가 apiClient.interceptors.request.use( config => { @@ -29,6 +24,8 @@ apiClient.interceptors.request.use( config.headers.Authorization = `Bearer ${authToken}`; } else { console.log('❌ localStorage에 토큰이 없습니다.'); + // config.headers.Authorization = + // 'Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOjEsImlhdCI6MTc1NDM4MjY1MiwiZXhwIjoxNzU2OTc0NjUyfQ.BSGuoMWlrzc0oKgSJXHEycxdzzY9-e7gD4xh-wSDemc'; } return config; diff --git a/src/pages/feed/Feed.tsx b/src/pages/feed/Feed.tsx index 9e69f011..81deca29 100644 --- a/src/pages/feed/Feed.tsx +++ b/src/pages/feed/Feed.tsx @@ -158,8 +158,13 @@ const Feed = () => { // localStorage에 토큰이 있는지 확인 const authToken = localStorage.getItem('authToken'); + // 토큰이 없으면 하드코딩된 토큰으로 설정 if (!authToken) { - console.log('❌ 토큰이 없어서 피드를 로드할 수 없습니다.'); + // localStorage.setItem( + // 'authToken', + // 'eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOjEsImlhdCI6MTc1NDM4MjY1MiwiZXhwIjoxNzU2OTc0NjUyfQ.BSGuoMWlrzc0oKgSJXHEycxdzzY9-e7gD4xh-wSDemc', + // ); + console.log('🔑 하드코딩된 토큰으로 설정했습니다.'); return; }