-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FE] feat: useSuspendedQuery, useSuspendedInfiniteQuery 추가 #443
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
3b8eeef
v0.1.0 (#412)
Leejin-Yang df9eb68
feat: useSuspendedQuery 추가
Leejin-Yang 8077512
refactor: 상품 쿼리 useSuspendedQuery로 전환
Leejin-Yang 6090dfb
refactor: 리뷰 쿼리 서스펜디드 쿼리로 전환
Leejin-Yang 2732651
refactor: ProductOverviewItem prop 타입 수정
Leejin-Yang 6294e5f
refactor: 리뷰 태그 서스팬디드 쿼리로 전환
Leejin-Yang 7904925
feat: useSuspendedInfiniteQuery 추가
Leejin-Yang daf81bb
refactor: 상품 리뷰 useSuspendedInfiniteQuery로 전환
Leejin-Yang 387f5d2
refactor: 상품 리스트 useSuspendedInfiniteQuery로 전환
Leejin-Yang 3d540e4
refactor: 꿀조합 상세 useSuspendedQuery로 전환
Leejin-Yang 8bb42e4
refactor: 상품 검색 useSuspendedInfiniteQuery로 전환
Leejin-Yang b52d5ad
refactor: 멤버 리뷰 useSuspendedInfiniteQuery로 전환
Leejin-Yang 91b18b9
refactor: 옵셔널 삭제
Leejin-Yang cd2ce6d
style: 타입 임포트 수정
Leejin-Yang b9cf913
Merge branch 'develop', remote-tracking branch 'origin' into feat/iss…
Leejin-Yang 3058b11
refactor: 검색 쿼리 useSuspendedInfiniteQuery로 수정
Leejin-Yang 5ed519e
refactor: 꿀조합 목록 쿼리 useSuspendedInfiniteQuery로 수정
Leejin-Yang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -4,18 +4,18 @@ import styled from 'styled-components'; | |
import PreviewImage from '@/assets/characters.svg'; | ||
|
||
interface ProductOverviewItemProps { | ||
name: string; | ||
image: string | null; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 억지로 구겨넣은 '?'가 다 사라졌군요 👍 |
||
rank?: number; | ||
name?: string; | ||
image?: string; | ||
} | ||
|
||
const ProductOverviewItem = ({ rank, name, image }: ProductOverviewItemProps) => { | ||
const ProductOverviewItem = ({ name, image, rank }: ProductOverviewItemProps) => { | ||
return ( | ||
<ProductOverviewContainer rank={rank} tabIndex={0}> | ||
<Text size="lg" weight="bold" align="center"> | ||
{rank ?? ''} | ||
</Text> | ||
{image ? ( | ||
{image !== null ? ( | ||
<ProductOverviewImage src={image} alt={rank ? `${rank}위 상품` : `${name}사진`} /> | ||
) : ( | ||
<ProductPreviewImage width={45} height={45} /> | ||
|
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
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,2 @@ | ||
export * from './useSuspendedQuery'; | ||
export * from './useSuspendedInfiniteQuery'; |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
얘는 뭐하는 친구죠??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
함수 오버로딩을 사용하려면 같은 이름의 함수를 여러개 선언해야하는데 린트 에러가 나서 껐습니다 ㅎㅎ...