-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SP2] 프로젝트 목록 useQuery 적용 및 필터링 값 유지 (#256)
* feat: queryClient 기본값 설정 * feat: 프로젝트 리스트 API 반환 타입 수정 * feat: 프로젝트 리스트 API useQuery 적용 * feat: 서스펜스 Fallback UI 컴포넌트 생성 * style: 프로젝트 카드 스타일 코드 수정 * style: 프로젝트 개수 스타일 코드 수정 * style: 프로젝트 목록 스타일 코드 수정 * feat: 프로젝트 필터값 세션 스토리지 저장 * feat: 최근 출시한 프로젝트 캐싱 데이터 사용 * feat: 프로젝트 목록 staleTime 지정 * feat: 세션 스토리지 훅 타입 지정 * style: Fallback UI 수정 * fix: 최근 출시한 프로젝트 useQuery 적용 * style: 필요없는 스타일 코드 제거 * feat : 프로젝트 캐러셀 SkeletonUI (#258) * fix: 블로그 썸네일 옵셔널 체이닝 적용 --------- Co-authored-by: solar3070 <> Co-authored-by: wooyoung <[email protected]>
- Loading branch information
Showing
25 changed files
with
413 additions
and
225 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
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
40 changes: 40 additions & 0 deletions
40
src/views/ProjectPage/components/RecentProjectList/RecentProjectListSkeletonUI/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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import * as S from './style'; | ||
|
||
interface CarouselProps { | ||
itemWidth: number; | ||
stride: number; | ||
} | ||
|
||
export default function RecentProjectListSkeletonUI({ itemWidth }: CarouselProps) { | ||
const recentProjectListDummyArray = [1, 2, 3]; | ||
|
||
return ( | ||
<S.Wrapper> | ||
<S.RightBlur /> | ||
<S.CarouselViewport> | ||
<S.CarouselWrapper itemWidth={itemWidth} itemCount={3}> | ||
{recentProjectListDummyArray.map((index) => ( | ||
<S.MarginWrapper key={index}> | ||
<S.GridWrapper> | ||
<S.ThumbnailImage /> | ||
<S.DetailWrapper> | ||
<S.Title /> | ||
<S.Description /> | ||
</S.DetailWrapper> | ||
<S.DetailFooterWrapper> | ||
<S.Chip /> | ||
</S.DetailFooterWrapper> | ||
</S.GridWrapper> | ||
</S.MarginWrapper> | ||
))} | ||
</S.CarouselWrapper> | ||
</S.CarouselViewport> | ||
<S.RightArrow /> | ||
<S.DotWrapper> | ||
{recentProjectListDummyArray.map((index) => ( | ||
<S.Dot key={index} /> | ||
))} | ||
</S.DotWrapper> | ||
</S.Wrapper> | ||
); | ||
} |
Oops, something went wrong.