-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FE] refactor: 리뷰 상세페이지에서 변경된 API를 연동 (#297)
* refactor: 새로운 API 구조에 맞춰 ReviewCard 컴포넌트 및 타입 수정 * refactor: 새로운 API 구조에 맞춰 ReviewList Mock Data 수정 * refactor: revieweeName 뒤에 붙는 메시지 상수 처리 * design: ReviewListPage CSS 수정 * chore: ReviewList Mock Data 프로젝트명 변경 * refactor: 불필요한 코드 제거 * refactor: useGetReviewList의 데이터 변수명을 ReviewListData로 변경 * chore: useGetReviewList를 review 폴더로 이동 * refactor: 상세페이지에서 변경된 API에 맞게 인터페이스 및 코드 변경 * refactor: 변경된 API에 맞게 목 데이터 수정 및 createdAt 추가 * design: 상세페이지 전반적인 디자인 수정 * refactor: new Date() 추가
- Loading branch information
Showing
14 changed files
with
178 additions
and
63 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
15 changes: 6 additions & 9 deletions
15
frontend/src/pages/DetailedReviewPage/components/KeywordSection/index.tsx
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
9 changes: 2 additions & 7 deletions
9
frontend/src/pages/DetailedReviewPage/components/ReviewSectionHeader/index.tsx
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 |
---|---|---|
@@ -1,16 +1,11 @@ | ||
import * as S from './styles'; | ||
|
||
interface ReviewSectionHeaderProps { | ||
number: number; | ||
text: string; | ||
} | ||
|
||
const ReviewSectionHeader = ({ number, text }: ReviewSectionHeaderProps) => { | ||
return ( | ||
<S.ReviewSectionHeader> | ||
{number}. {text} | ||
</S.ReviewSectionHeader> | ||
); | ||
const ReviewSectionHeader = ({ text }: ReviewSectionHeaderProps) => { | ||
return <S.ReviewSectionHeader>{text}</S.ReviewSectionHeader>; | ||
}; | ||
|
||
export default ReviewSectionHeader; |
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
Oops, something went wrong.