Skip to content

Commit

Permalink
Merge pull request #186 from depromeet/feat/#185
Browse files Browse the repository at this point in the history
음식점 상세 페이지 이미지 오류들 수정
  • Loading branch information
y00eunji authored Jan 29, 2024
2 parents 5e61c59 + 1761a03 commit 245773b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/components/main/StoreDetailSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,24 @@ export default function StoreDetailSection({
<AnimatePortal isShowing={!isDragging}>
<Header
className={cn('absolute bg-white z-toast', {
'[&>*>*]:fill-white': reportData?.storeMainImageUrl,
'[&>*>*]:fill-white bg-transparent': reportData?.thumbnailUrl,
})}
>
{isScrollDown && <span>{storeData?.storeName}</span>}
</Header>
</AnimatePortal>

{reportData?.storeMainImageUrl && (
{reportData?.thumbnailUrl && (
<ImageContainer
type="medium"
src={reportData.storeMainImageUrl}
type="full"
src={reportData.thumbnailUrl}
alt="음식점 이미지"
/>
)}
<div
className={cn('w-full', {
'h-[24px] rounded-t-[24px]': reportData?.storeMainImageUrl,
'h-[56px]': !reportData?.storeMainImageUrl,
'h-[24px] rounded-t-[24px]': reportData?.thumbnailUrl,
'h-[56px]': !reportData?.thumbnailUrl,
})}
/>
<StoreInformation
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/api/useGetReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ApiResponse, axiosRequest } from '@api/api-config';

interface ReportData {
storeId: number;
storeMainImageUrl: string;
thumbnailUrl: string;
mostVisitedCount: number;
totalRevisitedCount: number;
}
Expand Down

0 comments on commit 245773b

Please sign in to comment.