-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c248e8
commit 6241e11
Showing
8 changed files
with
97 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,7 +141,18 @@ export const ReformerMyPageScreen = ({ | |
market_uuid: '', | ||
}; | ||
const defaultReformerResponseData: ReformerResponseType = { | ||
reformer_nickname: '', // 닉네임 | ||
user_info: { | ||
email: '[email protected]', | ||
phone: '010-1234-5678', | ||
full_name: '', | ||
nickname: '', | ||
agreement_terms: true, | ||
address: '', | ||
profile_image_url: '', | ||
introduce: '', | ||
is_active: true, | ||
role: 'reformer', | ||
}, | ||
reformer_link: '', // 자기소개 | ||
reformer_area: '', // 활동지역 | ||
education: [], // 학력 | ||
|
@@ -157,7 +168,7 @@ export const ReformerMyPageScreen = ({ | |
useState<ReformerResponseType>(defaultReformerResponseData); | ||
const [marketData, setMarketData] = useState<MarketType>({ | ||
reformer_link: '', // 링크 | ||
market_introduce: '정보 없음', // TODO: 이거 introduce로 수정하기 | ||
introduce: '정보 없음', // TODO: 이거 introduce로 수정하기 | ||
reformer_nickname: '정보 없음', // 닉네임 | ||
market_thumbnail: '', // 왜 안 나오지...? 원래없나 | ||
market_uuid: '', | ||
|
@@ -222,8 +233,7 @@ export const ReformerMyPageScreen = ({ | |
setMarketResponseData(marketResult); | ||
const marketUUID = await getMarketUUID(); | ||
fetchMarketData({ | ||
market_introduce: marketResult.market_introduce, | ||
market_thumbnail: marketResult.market_thumbnail || '', // 기본값 유지 | ||
//market_thumbnail: marketResult.market_thumbnail || '', // 기본값 유지 | ||
market_uuid: marketUUID || marketResult.market_uuid, | ||
}); | ||
console.log('마켓 정보 가져오기 성공', response2.data); | ||
|
@@ -238,9 +248,9 @@ export const ReformerMyPageScreen = ({ | |
const reformerResult: ReformerResponseType = response3.data; | ||
setReformerResponseData(reformerResult); | ||
fetchMarketData({ | ||
reformer_nickname: reformerResult.reformer_nickname, | ||
reformer_nickname: reformerResult.user_info.nickname, | ||
//TODO: 의종님이 api 수정하시면 여기서 자기소개 받도록 수정하기 | ||
//introduce: reformerResult.introduce, | ||
introduce: reformerResult.user_info.introduce, | ||
reformer_link: reformerResult.reformer_link, | ||
reformer_area: reformerResult.reformer_area, | ||
education: reformerResult.education, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters