Skip to content

Commit

Permalink
fix prettier issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shreeharsha-factly committed Oct 27, 2021
1 parent 9c3465e commit ffab664
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 ffab664

Please sign in to comment.