Skip to content

Commit

Permalink
package: offer-ui/react package update (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinhyojeong committed Feb 1, 2024
2 parents 7881021 + 5c1d1cf commit fd2246d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@emotion/core": "^11.0.0",
"@emotion/react": "^11.10.0",
"@emotion/styled": "^11.10.0",
"@offer-ui/react": "^0.3.5",
"@offer-ui/react": "^0.3.6",
"@suspensive/react": "^1.20.7",
"@tanstack/react-query": "^5.8.3",
"axios": "^1.2.3",
Expand Down
4 changes: 2 additions & 2 deletions src/apis/post/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ export const useGetPostQuery = (id: number) =>
postImages: [
{
id: 0,
src: data.thumbnailImageUrl || ''
url: data.thumbnailImageUrl || ''
},
...(data.imageUrls.map((url, idx) => ({
id: idx + 1,
src: url
url
})) || [])
]
})
Expand Down
7 changes: 6 additions & 1 deletion src/pages/post/[postId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ const PostDetailPage = ({ postId }: Props): ReactElement => {
<Layout>
<Main>
<div onClick={imageModal.openModal}>
<Carousel images={postImages || []} isArrow name="post-carousel" />
<Carousel
images={postImages}
isArrow
name="post-carousel"
selectedIndex={0}
/>
</div>
<Content>
<div>
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1864,10 +1864,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@offer-ui/react@^0.3.5":
version "0.3.5"
resolved "https://registry.yarnpkg.com/@offer-ui/react/-/react-0.3.5.tgz#e9c508f7b634cb98f04afa42efccaeffb043fb42"
integrity sha512-4EWExLktvRF7RCWaGg+UOIlfTgJ4lUNf1uCUh85tnA+kEZXOYgxwSzkY+HyMNBXXd1za/ybtPBD0SoByknXZ1w==
"@offer-ui/react@^0.3.6":
version "0.3.6"
resolved "https://registry.yarnpkg.com/@offer-ui/react/-/react-0.3.6.tgz#b68bebe6fced8abf3d618d4fce264f7ee8afc2d9"
integrity sha512-qs3zjNJ2g2zlrWWqI4cGcrniNbZvC1KWEtHoJ07xKOxg1gmNJ/2lT3RYzYq8rQbnWw+gZjRgykQKKb+S8LxF8g==

"@pkgjs/parseargs@^0.11.0":
version "0.11.0"
Expand Down

0 comments on commit fd2246d

Please sign in to comment.