Skip to content

Commit

Permalink
Run linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Sep 5, 2023
1 parent 56672bc commit 0f7e0ef
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/components/client/campaigns/CampaignCard/CampaignCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export default function ActiveCampaignCard({ campaign, index }: Props) {
position={'relative'}
sx={{
width: '100%',
aspectRatio:1.5,
maxHeight: theme.spacing(27.9)
aspectRatio: 1.5,
maxHeight: theme.spacing(27.9),
}}>
<Image
priority
Expand All @@ -63,7 +63,7 @@ export default function ActiveCampaignCard({ campaign, index }: Props) {
fill
sizes="(min-width: 2000px) 312px, (min-width: 1200px) calc(30vw - 38px), (min-width: 900px) calc(40.57vw - 29px), (min-width: 600px) calc(50vw - 28px), calc(100vw - 32px)"
quality={index === 0 ? 100 : 75}
style={{objectFit: 'cover'}}
style={{ objectFit: 'cover' }}
/>
</Box>
{campaignState === CampaignState.complete && percentage >= 100 ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ export default function ActiveCampaignCard({ campaign, index }: Props) {
// height: index === 0 ? theme.spacing(71.6) : theme.spacing(27.85),
// },
width: '100%',
aspectRatio:1.5,
aspectRatio: 1.5,
[theme.breakpoints.up('lg')]: {
maxHeight: index === 0 ? theme.spacing(71.6) : theme.spacing(27.85),
aspectRatio: index === 0 ? 1.24 : 1.55
}
maxHeight: index === 0 ? theme.spacing(71.6) : theme.spacing(27.85),
aspectRatio: index === 0 ? 1.24 : 1.55,
},
}}>
<Image
priority
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ export default function CompletedCampaignsSection() {
<CompletedCampaignLink
onMouseDown={onLinkMouseDown}
href={routes.campaigns.viewCampaignBySlug(campaign.slug)}
sx={{position: 'relative', aspectRatio:1, height: (theme) => theme.spacing(37.5)}}
>
<Image
fill
alt={campaign.title}
src={campaignListPictureUrl(campaign)}
sizes="(min-width: 2000px) 312px, (min-width: 1200px) calc(30vw - 38px), (min-width: 900px) calc(40.57vw - 29px), (min-width: 600px) calc(50vw - 28px), calc(100vw - 32px)"
style={{objectFit: 'cover'}} />
</CompletedCampaignLink>
sx={{ position: 'relative', aspectRatio: 1, height: (theme) => theme.spacing(37.5) }}>
<Image
fill
alt={campaign.title}
src={campaignListPictureUrl(campaign)}
sizes="(min-width: 2000px) 312px, (min-width: 1200px) calc(30vw - 38px), (min-width: 900px) calc(40.57vw - 29px), (min-width: 600px) calc(50vw - 28px), calc(100vw - 32px)"
style={{ objectFit: 'cover' }}
/>
</CompletedCampaignLink>
<CompletedSumWrapper>
<Sum>
{i18n.language === 'bg'
Expand Down

0 comments on commit 0f7e0ef

Please sign in to comment.