Skip to content

Commit

Permalink
reverted changes, moved objectFit prop into style prop in Image compo…
Browse files Browse the repository at this point in the history
…nent
  • Loading branch information
Nkiriobasi committed Aug 2, 2023
1 parent 553b732 commit f3a3460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/client/campaigns/CampaignSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function CampaignSlider({ sliderImages }: Props) {
<Root className={classes.container}>
<div style={{ textAlign: 'center' }}>
{/* A11Y TODO: Add proper alt text*/}
<Image src={sliderImages[0]} alt="campaign" height={300} width={400} objectFit="cover" />
<Image src={sliderImages[0]} alt="campaign" height={300} width={400} style={{objectFit: 'cover'}} />
</div>
</Root>
)
Expand All @@ -96,7 +96,7 @@ export default function CampaignSlider({ sliderImages }: Props) {
{sliderImages.map((image, index) => (
<div key={index}>
{/* A11Y TODO: Add proper alt text*/}
<Image src={image} alt="campaign" height={300} width={400} objectFit="cover" />
<Image src={image} alt="campaign" height={300} width={400} style={{objectFit: 'cover'}} />
</div>
))}
</Slider>
Expand Down

0 comments on commit f3a3460

Please sign in to comment.