Skip to content

Commit

Permalink
remove animation
Browse files Browse the repository at this point in the history
  • Loading branch information
srikarparsi committed Jun 13, 2024
1 parent 9ddc788 commit 3e1c0b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
5 changes: 0 additions & 5 deletions src/components/LottieAnimations/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ const DotLottieAnimations = {
h: 400,
backgroundColor: colors.ice500,
},
MagicCode: {
file: require('@assets/animations/MagicCode.lottie'),
w: 200,
h: 164,
},
Magician: {
file: require('@assets/animations/Magician.lottie'),
w: 853,
Expand Down
13 changes: 5 additions & 8 deletions src/components/ValidateCode/ValidateCodeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import type {OnyxEntry} from 'react-native-onyx';
import {withOnyx} from 'react-native-onyx';
import Icon from '@components/Icon';
import * as Expensicons from '@components/Icon/Expensicons';
import Lottie from '@components/Lottie';
import LottieAnimations from '@components/LottieAnimations';
import Text from '@components/Text';
import TextLink from '@components/TextLink';
import useLocalize from '@hooks/useLocalize';
Expand All @@ -15,6 +13,7 @@ import variables from '@styles/variables';
import * as Session from '@userActions/Session';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Session as SessionType} from '@src/types/onyx';
import * as Illustrations from '@components/Icon/Illustrations';

type ValidateCodeModalOnyxProps = {
/** Session of currently logged in user */
Expand All @@ -38,12 +37,10 @@ function ValidateCodeModal({code, accountID, session = {}}: ValidateCodeModalPro
<View style={styles.deeplinkWrapperContainer}>
<View style={styles.deeplinkWrapperMessage}>
<View style={styles.mb2}>
<Lottie
source={LottieAnimations.MagicCode}
style={styles.magicCodeAnimation}
webStyle={styles.magicCodeAnimation}
autoPlay
loop
<Icon
width={variables.modalTopIconWidth}
height={variables.modalTopIconHeight}
src={Illustrations.MagicCode}
/>
</View>
<Text style={[styles.textHeadline, styles.textXXLarge, styles.textAlignCenter]}>{translate('validateCodeModal.title')}</Text>
Expand Down
4 changes: 0 additions & 4 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4444,10 +4444,6 @@ const styles = (theme: ThemeColors) =>
overflow: 'hidden',
},

magicCodeAnimation: {
width: variables.modalTopIconWidth,
},

justSignedInModalAnimation: (is2FARequired: boolean) => ({
height: is2FARequired ? variables.modalTopIconHeight : variables.modalTopBigIconHeight,
}),
Expand Down

0 comments on commit 3e1c0b8

Please sign in to comment.