Replaced images for core concepts. Fixed a bug causing duplicate props on image and its container in mdx
This commit is contained in:
committed by
fabioberger
parent
bf9eb1413b
commit
1183cf5e6b
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 33 KiB |
2
packages/website/public/images/docs/hashing.svg
generated
2
packages/website/public/images/docs/hashing.svg
generated
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
2
packages/website/public/images/docs/signing.svg
generated
2
packages/website/public/images/docs/signing.svg
generated
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
@@ -35,7 +35,7 @@ export const Animation: React.FC<IAnimationProps> = ({ name, ...props }) => {
|
||||
};
|
||||
|
||||
Animation.defaultProps = {
|
||||
width: '660px',
|
||||
width: '620px',
|
||||
marginBottom: docs.marginBottom,
|
||||
};
|
||||
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user