-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2단계 - 장바구니 미션] 하루(김하루) 미션 제출합니다. (#54)
* feat: RedirectNotice 컴포넌트 구현 * feat: 결제 실패 안내 기능 구현 * refactor: pages 디렉토리 components 밖으로 분리 * refactor: 누락된 prop-types 추가 * refactor: 공통 컴포넌트 네이밍 변경 * refactor: CSS 레이아웃, 브레이크포인트, 색상 상수화 * refactor: Confirm 컴포넌트 props 의존성 주입 * refactor: useConfirm 커스텀 훅 추가 * fix: rgba 값에 hex 값이 잘못 들어가는 문제 해결 * refactor: props가 없는 경우 에러처리 * feat: 화면 폭 일정 크기 이하일 때 Title 숨기기 * refactor: 각 Page 의 Item 컴포넌트 depth 변경 * feat: deepCamalize 유틸 함수 추가 * feat: 상품목록 api 연결 * refactor: statics 디렉토리 생성 * chore: swr 설치 * feat: Skeleton 컴포넌트 추가 * refactor: END_POINT => BASE_URL 변수명 변경 * feat: 상품목록 skeleton 구현, swr 마이그레이션 * feat: ErrorBoundary 컴포넌트 추가 * refactor: api PATH 파라미터 네이밍 변경 * feat: deepDecamelize 유틸함수 추가 * feat: 장바구니 swr 마이그레이션 * refactor: 원화 포맷 함수 정규식에서 DOM API 로 변경 * refactor: fetcher 함수 네이밍 변경 * refactor: 주문 총 금액 포맷팅 위치 변경 * feat: 주문/결제 swr 마이그레이션 * feat: 주문목록 swr 마이그레이션 * refactor: 고객이름 상수화, 배열에서 마지막인덱스 접근 구문 변경 * fix: 상품목록 페이지 에러 화면 문구 수정 * refactor: useProduct => useProducts 네이밍 변경 * fix: font impot 경로 수정 * feat: useProduct 커스텀 훅 추가 * feat: 상품 상세 페이지 UI 및 기능 구현 * refactor: 불필요한 redux, dispatch 구문 제거, 핸들러 네이밍 변경 * refactor: Stepper UI 너비 '%' 단위 제거 및 상수화 * refactor: 크기가 0인 input의 위치를 화면 밖으로 조정 * refactor: ROUTE path 수정 * chore: 배포 설정 * chore: 테스트 관련 패키지 devDependencies 하위로 이동 * style: EOL 추가 * feat: 장바구니 아이템 추가/삭제 API throttle 적용 * chore: 사용하지 않는 파일 삭제 * feat: 네트워크 요청 구문 try...catch문 추가 * feat: 상품상세 페이지 스케일 수정 * test: mock.js 파일 분리 * docs: 2단계 구현기능 목록 업데이트
- Loading branch information
Showing
99 changed files
with
1,815 additions
and
1,196 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
/* /index.html 200 |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
import * as React from 'react'; | ||
|
||
import { Image } from './style'; | ||
import blueScreen from '../../../statics/images/blueScreen.png'; | ||
|
||
export const BlueScreen = () => { | ||
return <Image src={blueScreen} alt="blue screen" />; | ||
}; |
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,5 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Image = styled.img` | ||
width: 5.5rem; | ||
`; |
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
File renamed without changes.
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: 5 additions & 4 deletions
9
...omponents/commons/atoms/CartIcon/index.js → src/components/atoms/IconCart/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,21 @@ | ||
import PropTypes from 'prop-types'; | ||
import * as S from './style.js'; | ||
import { COLOR } from '../../../constants'; | ||
|
||
export const Line = (props) => { | ||
const { width, thickness, color, ...rest } = props; | ||
|
||
return <S.Line width={width} thickness={thickness} color={color} {...rest} />; | ||
}; | ||
|
||
Line.propTypes = { | ||
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, | ||
thickness: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, | ||
color: PropTypes.string.isRequired, | ||
}; | ||
|
||
Line.defaultProps = { | ||
width: '100%', | ||
thickness: '0.25rem', | ||
color: COLOR.HEX.BLACK, | ||
}; |
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.