Skip to content

Commit bac26e8

Browse files
authored
Merge pull request #14411 from guardian/doml/refactor-image-wrapper
Refactor `image` -> `media`
2 parents 961422d + d1d8ba8 commit bac26e8

23 files changed

+500
-502
lines changed

dotcom-rendering/src/components/Avatar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { breakpoints } from '@guardian/source/foundations';
33
import { Fragment } from 'react';
44
import { getSourceImageUrl } from '../lib/getSourceImageUrl_temp_fix';
55
import { palette } from '../palette';
6-
import type { ImageSizeType } from './Card/components/ImageWrapper';
6+
import type { MediaSizeType } from './Card/components/MediaWrapper';
77
import {
88
generateSources,
99
getFallbackSource,
@@ -56,11 +56,11 @@ type Props = {
5656
src: string;
5757
alt: string;
5858
shape?: AvatarShape;
59-
imageSize?: ImageSizeType;
59+
imageSize?: MediaSizeType;
6060
};
6161

6262
const decideImageWidths = (
63-
imageSize: ImageSizeType,
63+
imageSize: MediaSizeType,
6464
): [ImageWidthType, ...ImageWidthType[]] => {
6565
switch (imageSize) {
6666
case 'small':

0 commit comments

Comments
 (0)