Skip to content

Commit

Permalink
Merge pull request #74 from factly/fix/image-prettier
Browse files Browse the repository at this point in the history
fix prettier issues
  • Loading branch information
shreeharsha-factly authored Oct 27, 2021
2 parents 5e810fe + ffab664 commit 5676529
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions web/src/components/ErrorsAndImage/PlaceholderImage.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import React from 'react';
import placeholderImg from './placeholderImage.svg';
function PlaceholderImage({ width, height, maxWidth }) {
return (
<>
<img
src={placeholderImg}
width={width}
height={height}
alt=""
style={{ objectFit: 'contain', padding: '1rem', maxWidth: maxWidth || '240px' }}
/>
</>
);
}

PlaceholderImage.defaultProps = {
height: 'auto',
width: '100%',
};

export default PlaceholderImage;
import React from 'react';
import placeholderImg from './placeholderImage.svg';
function PlaceholderImage({ width, height, maxWidth }) {
return (
<>
<img
src={placeholderImg}
width={width}
height={height}
alt=""
style={{ objectFit: 'contain', padding: '1rem', maxWidth: maxWidth || '240px' }}
/>
</>
);
}

PlaceholderImage.defaultProps = {
height: 'auto',
width: '100%',
};

export default PlaceholderImage;

0 comments on commit 5676529

Please sign in to comment.