-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FE] issue75: 이미지 에러 및 스터디 상세 페이지 수정 (#104)
* feat: src 없을 때 이미지 처리 * feat: 에러페이지 구현 * fix: 모집중, 모집완료 수정 open, close -> OPEN, CLOSE * refactor: 스터디 상세 페이지 수정 스타일 컴포넌트 분리 * style: 스터디 리뷰 섹션 스타일 수정 * style: 메인 페이지 카드 너비 균일화 * refactor: 컴포넌트 이름 변경 * refactor: 사용하지 않는 className 속성 삭제 * feat: 선택요소 에러 처리 * refactor: 변경된 api 명세에 맞춰 타입 수정 * fix: mock data 수정 * fix: api 명세에 맞춰 type, props 수정 profileImage -> imageUrl tagName -> name * refactor: 0px 제거
- Loading branch information
Showing
52 changed files
with
1,506 additions
and
1,072 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
API_URL="http://52.79.214.158:8080" | ||
API_URL="" | ||
CLIENT_ID="cb83d95cd5644436b090" |
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,2 +1,2 @@ | ||
API_URL="http://52.79.214.158:8080" | ||
API_URL="" | ||
CLIENT_ID="cb83d95cd5644436b090" |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import notFoundImage from '@assets/images/no-image-found.png'; | ||
|
||
interface ImageProps { | ||
className?: string; | ||
src: string; | ||
alt: string; | ||
} | ||
|
||
const Image: React.FC<ImageProps> = ({ className, src, alt }) => { | ||
const handleImageError = ({ currentTarget }: React.SyntheticEvent<HTMLImageElement>) => { | ||
currentTarget.src = notFoundImage; | ||
}; | ||
|
||
return <img className={className} src={src} alt={alt} onError={handleImageError} />; | ||
}; | ||
|
||
export default Image; |
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 Chip from '@components/chip/Chip'; | ||
|
||
type StudyChipProps = { | ||
className?: string; | ||
isOpen: boolean; | ||
}; | ||
|
||
const StudyChip = ({ className, isOpen }: StudyChipProps) => { | ||
return ( | ||
<Chip className={className} disabled={!isOpen}> | ||
{isOpen ? '모집중' : '모집완료'} | ||
</Chip> | ||
); | ||
const StudyChip = ({ isOpen }: StudyChipProps) => { | ||
return <Chip disabled={!isOpen}>{isOpen ? '모집중' : '모집완료'}</Chip>; | ||
}; | ||
|
||
export default StudyChip; |
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.