Skip to content

Commit

Permalink
fix: alt값을 필수로 받도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Leejha committed Mar 22, 2024
1 parent e7dde42 commit fe86932
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions apps/jurumarble/src/app/main/components/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function Carousel({ hotDrinkList }: Props) {
<DrinkImageContainer>
<RankginMark>{index + 1}</RankginMark>
<DrinkImageWrapper
alt={name}
src={image}
fill
style={{ borderRadius: '10px' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function HotDrinkVoteContainer() {
<DrinkImageBox color="orange">
<ImageWrapper>
<DrinkImageWrapper
alt="A이미지"
src={drinkAImage}
fill
style={{ borderRadius: '80px' }}
Expand All @@ -41,6 +42,7 @@ function HotDrinkVoteContainer() {
<DrinkImageBox color="mint">
<ImageWrapper>
<DrinkImageWrapper
alt="B이미지"
src={drinkBImage}
fill
style={{ borderRadius: '80px' }}
Expand Down
6 changes: 2 additions & 4 deletions apps/jurumarble/src/components/DrinkImageWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import { DrinkImage } from 'public/images';

import FallbackImage from './FallbackImage';

interface Props extends Omit<ImageProps, 'alt'> {}

function DrinkImageWrapper({ ...rest }: Props) {
return <FallbackImage alt="전통주" fallbackSrc={DrinkImage} {...rest} />;
function DrinkImageWrapper({ ...rest }: ImageProps) {
return <FallbackImage fallbackSrc={DrinkImage} {...rest} />;
}

export default DrinkImageWrapper;

0 comments on commit fe86932

Please sign in to comment.