Replaced images for core concepts. Fixed a bug causing duplicate props on image and its container in mdx

This commit is contained in:
Piotr Janosz
2019-08-22 16:37:51 +02:00
committed by fabioberger
parent bf9eb1413b
commit 1183cf5e6b
5 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 33 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -35,7 +35,7 @@ export const Animation: React.FC<IAnimationProps> = ({ name, ...props }) => {
};
Animation.defaultProps = {
width: '660px',
width: '620px',
marginBottom: docs.marginBottom,
};

View File

@@ -17,9 +17,9 @@ interface IImageWrapperProps {
marginBottom?: string;
}
export const Image: React.FC<IImageProps> = props => (
export const Image: React.FC<IImageProps> = ({ src, alt, title, height, width, ...props }) => (
<ImageWrapper {...props}>
<img {...props} />
<img src={src} alt={alt} title={title} height={height} width={width} />
</ImageWrapper>
);