diff --git a/package.json b/package.json index 11b50113..fe10ac06 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/apis/post/queries.ts b/src/apis/post/queries.ts index bc650ef5..a411f357 100644 --- a/src/apis/post/queries.ts +++ b/src/apis/post/queries.ts @@ -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 })) || []) ] }) diff --git a/src/pages/post/[postId]/index.tsx b/src/pages/post/[postId]/index.tsx index a33d88ad..4a6e6a6d 100644 --- a/src/pages/post/[postId]/index.tsx +++ b/src/pages/post/[postId]/index.tsx @@ -85,7 +85,12 @@ const PostDetailPage = ({ postId }: Props): ReactElement => {
- +
diff --git a/yarn.lock b/yarn.lock index 60ac4d1a..458055da 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"