Skip to content

Commit 0053fac

Browse files
authored
Merge pull request #139 from wafflestudio/136-bug-fix
post detail의 타입 불일치 해결
2 parents 4a188f6 + bc1eb6b commit 0053fac

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/components/post/PostDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface PostData {
1818
nickname: string
1919
profileImageUrl: string
2020
content: string
21-
albumId: number
21+
albumId: number | null
2222
images: PostImage[]
2323
likeCount: number
2424
commentCount: number

src/features/create-post/ui/AlbumSelectDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function AlbumSelectDropdown({
140140
</DropdownMenuTrigger>
141141
<DropdownMenuContent
142142
align="start"
143-
className="z-60 w-80 border-none bg-white p-0 shadow-[0_2px_8px_rgba(0,0,0,0.15)]"
143+
className="z-[130] w-80 border-none bg-white p-0 shadow-[0_2px_8px_rgba(0,0,0,0.15)]"
144144
>
145145
<DropdownMenuRadioGroup
146146
value={state.value}

src/features/create-post/ui/DeleteAlbumDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export function DeleteAlbumDialog({
2020
<Dialog open={open} onOpenChange={onOpenChange}>
2121
<DialogContent
2222
showCloseButton={false}
23-
overlayClassName="z-70"
24-
className="z-70 w-[min(92vw,520px)] gap-0 overflow-hidden rounded-3xl bg-white p-0"
23+
overlayClassName="z-[140]"
24+
className="z-[140] w-[min(92vw,520px)] gap-0 overflow-hidden rounded-3xl bg-white p-0"
2525
>
2626
<div className="px-8 pt-10 pb-8 text-center">
2727
<DialogTitle className="text-2xl leading-tight font-semibold">

src/routes/_app/$userId/albums.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function RouteComponent() {
8888
</button>
8989
</div>
9090
<div className="flex h-96 flex-col items-center justify-center gap-2 text-sm text-gray-500">
91-
<span>해당 앨범은 삭제되었습니다.</span>
91+
<span>앨범 데이터를 찾을 수 없습니다.</span>
9292
</div>
9393
</div>
9494
) : (

0 commit comments

Comments
 (0)