Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed Jan 7, 2025
1 parent ab39e24 commit 8456285
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
8 changes: 6 additions & 2 deletions dotcom-rendering/src/components/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import { breakpoints } from '@guardian/source/foundations';
import { Fragment } from 'react';
import { getSourceImageUrl } from '../lib/getSourceImageUrl_temp_fix';
import { palette } from '../palette';
import { ImageSizeType } from './Card/components/ImageWrapper';
import { generateSources, getFallbackSource, ImageWidthType } from './Picture';
import type { ImageSizeType } from './Card/components/ImageWrapper';
import {
generateSources,
getFallbackSource,
type ImageWidthType,
} from './Picture';

const picture = css`
height: 100%;
Expand Down
46 changes: 22 additions & 24 deletions dotcom-rendering/src/components/Card/components/CardLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,27 +164,25 @@ export const CardLayout = ({
containerType,
gapSize = 'small',
isBetaContainer,
}: Props) => {
return (
<div
css={[
containerStyles,
containerType === 'fixed/video'
? videoWidth
: minWidth(minWidthInPixels),
decidePosition(
imagePositionOnMobile,
imagePositionOnDesktop,
isBetaContainer,
imageType === 'avatar',
),
]}
style={{
backgroundColor: cardBackgroundColour,
gap: decideGap(gapSize),
}}
>
{children}
</div>
);
};
}: Props) => (
<div
css={[
containerStyles,
containerType === 'fixed/video'
? videoWidth
: minWidth(minWidthInPixels),
decidePosition(
imagePositionOnMobile,
imagePositionOnDesktop,
isBetaContainer,
imageType === 'avatar',
),
]}
style={{
backgroundColor: cardBackgroundColour,
gap: decideGap(gapSize),
}}
>
{children}
</div>
);

0 comments on commit 8456285

Please sign in to comment.