[IMPROVE] fix some errors pointed out in LGTM
This commit is contained in:
parent
d3986689e5
commit
43c4234f73
|
@ -1,6 +1,5 @@
|
||||||
import React, { useContext } from 'react';
|
import React, { useContext } from 'react';
|
||||||
import { View } from 'react-native';
|
import { View } from 'react-native';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import FastImage from '@rocket.chat/react-native-fast-image';
|
import FastImage from '@rocket.chat/react-native-fast-image';
|
||||||
import { dequal } from 'dequal';
|
import { dequal } from 'dequal';
|
||||||
import { createImageProgress } from 'react-native-image-progress';
|
import { createImageProgress } from 'react-native-image-progress';
|
||||||
|
@ -86,7 +85,6 @@ const ImageContainer = React.memo(({file, imageUrl, showAttachment, getCustomEmo
|
||||||
}, (prevProps, nextProps) => dequal(prevProps.file, nextProps.file) && prevProps.theme === nextProps.theme);
|
}, (prevProps, nextProps) => dequal(prevProps.file, nextProps.file) && prevProps.theme === nextProps.theme);
|
||||||
|
|
||||||
ImageContainer.displayName = 'MessageImageContainer';
|
ImageContainer.displayName = 'MessageImageContainer';
|
||||||
ImageContainer.displayName = 'MessageImage';
|
MessageImage.displayName = 'MessageImage';
|
||||||
ImageContainer.displayName = 'MessageButton';
|
|
||||||
|
|
||||||
export default ImageContainer;
|
export default ImageContainer;
|
||||||
|
|
Loading…
Reference in New Issue