-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* style: BookGroupNavigation a모임제목 말줄임 적용 * feat: 모임상세 뒤로가기 구현 * feat: Avatar fallback image 설정 * feat: Loading 컴포넌트 작성 * feat: context provider에 Suspense 추가 * fix: axios host 설정 * feat: suspens query 적용 * fix: next/image sizes 관련 경고 해결 * feat: 모임 상세 skeleton 적용 * fix: context provider에서 suspense 제거 * style: TitleSkeleton pulse animation 추가 * fix: avatar next/image 사이즈 경고 해결 * feat: 게시글 없는 경우 메세지 노출 * style: toast 가운데 정렬 * chore: groupAPI 컨벤션에 맞게 네이밍 수정 * refactor: BookGroupNavigation 컴포넌트 분리 - 합성 컴포넌트로 리팩토링 * feat: 모임 가입 버튼 구현 * fix: 비공개 모임인 경우 댓글 보이지 않게 수정 * chore: 모임 가입문제 페이지로 라우팅되지 않도록 수정 * feat: BookInfoCard 클릭 시 책 상세 페이지로 이동 * feat: book query key factory 객체 추가 * refactor: getSize 함수가 객체를 반환하도록 수정 * refactor: AnimationStep 타입 추가, LoadigDot export 제거 * fix: BookGroupNavigation 내부에 SSRSafeSuspense 적용 * fix: 비공개 모임이지만 멤버인 경우 게시글 보이도록 수정 - comment divider style 제거 * feat: w-app css class 추가 - 모임 상세페이지 여백 style 조정
- Loading branch information
Showing
24 changed files
with
550 additions
and
177 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Loading from '@/ui/Base/Loading'; | ||
|
||
export default function RootLoading() { | ||
return <Loading fullpage />; | ||
} |
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,15 @@ | ||
import { ComponentPropsWithoutRef, Suspense } from 'react'; | ||
|
||
import useMounted from '@/hooks/useMounted'; | ||
|
||
const SSRSafeSuspense = (props: ComponentPropsWithoutRef<typeof Suspense>) => { | ||
const isMounted = useMounted(); | ||
|
||
if (isMounted) { | ||
return <Suspense {...props} />; | ||
} | ||
|
||
return <>{props.fallback}</>; | ||
}; | ||
|
||
export default SSRSafeSuspense; |
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,10 @@ | ||
import { APIBook } from '@/types/book'; | ||
|
||
const bookKeys = { | ||
all: ['book'], | ||
details: () => [...bookKeys.all, 'detail'] as const, | ||
detail: (bookId: APIBook['bookId']) => | ||
[...bookKeys.details(), bookId] as const, | ||
}; | ||
|
||
export default bookKeys; |
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,24 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import Loading from '@/ui/Base/Loading'; | ||
|
||
const meta: Meta<typeof Loading> = { | ||
title: 'Base/Loading', | ||
component: Loading, | ||
tags: ['autodocs'], | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof Loading>; | ||
|
||
export const Default: Story = { | ||
args: {}, | ||
}; | ||
|
||
export const Main: Story = { | ||
args: { color: 'main' }, | ||
}; | ||
|
||
export const Grey: Story = { | ||
args: { color: 'grey' }, | ||
}; |
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.