Skip to content

Commit 60fe0c4

Browse files
committed
fmt fix
1 parent 27c0359 commit 60fe0c4

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

src/components/TrialPaymentReminderModal.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
import React from 'react';
2-
import {View} from 'react-native';
31
import {useMemoizedLazyIllustrations} from '@hooks/useLazyAsset';
42
import useLocalize from '@hooks/useLocalize';
53
import useResponsiveLayout from '@hooks/useResponsiveLayout';
64
import useThemeStyles from '@hooks/useThemeStyles';
75
import type {CountdownTime, TrialReminderVariant} from '@hooks/useTrialPaymentReminder';
6+
87
import colors from '@styles/theme/colors';
8+
99
import CONST from '@src/CONST';
10+
11+
import React from 'react';
12+
import {View} from 'react-native';
13+
1014
import Button from './Button';
1115
import ImageSVG from './ImageSVG';
1216
import Modal from './Modal';

src/components/TrialPaymentReminderModalManager.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
import React, {useCallback, useState} from 'react';
21
import useOnyx from '@hooks/useOnyx';
32
import useTrialPaymentReminder from '@hooks/useTrialPaymentReminder';
3+
44
import Navigation from '@libs/Navigation/Navigation';
5+
56
import ONYXKEYS from '@src/ONYXKEYS';
67
import ROUTES from '@src/ROUTES';
8+
9+
import React, {useCallback, useState} from 'react';
10+
711
import TrialPaymentReminderModal from './TrialPaymentReminderModal';
812

913
function TrialPaymentReminderModalManager() {

src/hooks/useTrialPaymentReminder.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,7 @@ function useTrialPaymentReminder() {
205205
return isSameVariation(prev, next) ? prev : next;
206206
});
207207

208-
if (
209-
!isUserOnFreeTrial(firstDayFreeTrial, lastDayFreeTrial) ||
210-
doesUserHavePaymentCardAdded(billingFundID) ||
211-
currentVariation?.variant === CONST.TRIAL_REMINDER_VARIANT.COUNTDOWN
212-
) {
208+
if (!isUserOnFreeTrial(firstDayFreeTrial, lastDayFreeTrial) || doesUserHavePaymentCardAdded(billingFundID) || currentVariation?.variant === CONST.TRIAL_REMINDER_VARIANT.COUNTDOWN) {
213209
return;
214210
}
215211

0 commit comments

Comments
 (0)