TP-60588 | Lint fixes
This commit is contained in:
@@ -7,7 +7,7 @@ import ModalWrapperForAlfredV2 from '@common/ModalWrapperForAlfredV2';
|
||||
import LottieView from 'lottie-react-native';
|
||||
import Text from '@rn-ui-lib/components/Text';
|
||||
import NaviLogoWithTextIcon from '@rn-ui-lib/icons/NaviLogoWithTextIcon';
|
||||
import {GenericStyles} from "@rn-ui-lib/styles";
|
||||
import { GenericStyles } from '@rn-ui-lib/styles';
|
||||
import lottieJson from './loader.json';
|
||||
|
||||
export interface CodePushLoadingModalRef {
|
||||
@@ -16,7 +16,6 @@ export interface CodePushLoadingModalRef {
|
||||
updateProgress: (progress: DownloadProgress) => void;
|
||||
}
|
||||
|
||||
|
||||
const CodePushLoadingModal = forwardRef<CodePushLoadingModalRef>((_, ref) => {
|
||||
const [visible, setVisible] = useState(false);
|
||||
const [progress, setProgress] = useState<DownloadProgress>();
|
||||
@@ -37,12 +36,7 @@ const CodePushLoadingModal = forwardRef<CodePushLoadingModalRef>((_, ref) => {
|
||||
<View style={styles.modalContainer}>
|
||||
<View style={styles.modalContent}>
|
||||
<View style={styles.LottieContainerStyles}>
|
||||
<LottieView
|
||||
style={styles.LottieStyles}
|
||||
source={lottieJson}
|
||||
autoPlay
|
||||
loop
|
||||
/>
|
||||
<LottieView style={styles.LottieStyles} source={lottieJson} autoPlay loop />
|
||||
</View>
|
||||
|
||||
{progress ? (
|
||||
@@ -66,11 +60,11 @@ const CodePushLoadingModal = forwardRef<CodePushLoadingModalRef>((_, ref) => {
|
||||
const styles = StyleSheet.create({
|
||||
LottieContainerStyles: {
|
||||
alignItems: 'center',
|
||||
marginBottom: 24
|
||||
marginBottom: 24,
|
||||
},
|
||||
LottieStyles: {
|
||||
height: 140,
|
||||
width: 140
|
||||
width: 140,
|
||||
},
|
||||
header: {
|
||||
color: COLORS.TEXT.BLACK_24,
|
||||
@@ -96,7 +90,7 @@ const styles = StyleSheet.create({
|
||||
fontSize: 14,
|
||||
fontWeight: '700',
|
||||
marginTop: 6,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
CodePushLoadingModal.displayName = 'codepush-loading-modal';
|
||||
|
||||
Reference in New Issue
Block a user