Skip to content

Commit

Permalink
Align changes with project code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kidroca committed Dec 5, 2023
1 parent cc49208 commit 1182c7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/Image/BaseImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ function BaseImage({onLoad, ...props}) {

BaseImage.propTypes = imagePropTypes;
BaseImage.defaultProps = defaultProps;
BaseImage.displayName = 'BaseImage';

export default BaseImage;
4 changes: 1 addition & 3 deletions src/components/Image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import BaseImage from './BaseImage';
import {defaultProps, imagePropTypes} from './imagePropTypes';
import RESIZE_MODES from './resizeModes';

function Image(props) {
const {source: propsSource, isAuthTokenRequired, session, ...forwardedProps} = props;

function Image({source: propsSource, isAuthTokenRequired, session, ...forwardedProps}) {
// Update the source to include the auth token if required
const source = useMemo(() => {
if (typeof lodashGet(propsSource, 'uri') === 'number') {
Expand Down

0 comments on commit 1182c7d

Please sign in to comment.