Skip to content

Commit c7951a8

Browse files
authored
Merge pull request #110 from CSSSR/fix/COM-2031
fix(testId): COM-2031 Переименовал prop testid -> testId
2 parents f88c078 + 059751c commit c7951a8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/react/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { getSources, getSrcSetString } from '../utils';
66
export type PictureCommonProps = {
77
alt: string;
88
className?: string;
9-
testid?: string;
9+
testId?: string;
1010
};
1111

1212
export type PictureProps = {
1313
sources: BreakpointSource[];
1414
} & PictureCommonProps;
1515

16-
export const Picture: React.FC<PictureProps> = ({ sources, alt, className, testid }) => {
16+
export const Picture: React.FC<PictureProps> = ({ sources, alt, className, testId }) => {
1717
const lastSource = sources[sources.length - 1];
1818
const fallbackSrcSet = lastSource.srcSets[lastSource.srcSets.length - 1].srcSet;
1919

@@ -32,7 +32,7 @@ export const Picture: React.FC<PictureProps> = ({ sources, alt, className, testi
3232
<img
3333
srcSet={getSrcSetString(fallbackSrcSet)}
3434
src={fallbackSrcSet['1x']}
35-
data-testid={testid}
35+
data-testid={testId}
3636
alt={alt}
3737
/>
3838
</picture>

0 commit comments

Comments
 (0)