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/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/feed/MyFeed.tsx b/src/components/feed/MyFeed.tsx index abfc8936..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/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/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; } 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} 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;