Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cdOut committed Apr 11, 2024
1 parent 443539c commit 5facddb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useDisableModalDismissOnEscape.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {useEffect} from 'react';
import * as Modal from '@userActions/Modal';
import { useEffect } from "react";

export default function useDisableModalDismissOnEscape() {
useEffect(() => {
Modal.setDisableDismissOnEscape(true);
return () => Modal.setDisableDismissOnEscape(false);
}, []);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Text from '@components/Text';
import TextInput from '@components/TextInput';
import type {WithCurrentUserPersonalDetailsProps} from '@components/withCurrentUserPersonalDetails';
import withCurrentUserPersonalDetails from '@components/withCurrentUserPersonalDetails';
import useDisableModalDismissOnEscape from '@hooks/useDisableModalDismissOnEscape';
import useLocalize from '@hooks/useLocalize';
import useOnboardingLayout from '@hooks/useOnboardingLayout';
import useTheme from '@hooks/useTheme';
Expand All @@ -23,7 +24,6 @@ import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import INPUT_IDS from '@src/types/form/DisplayNameForm';
import useDisableModalDismissOnEscape from '@hooks/useDisableModalDismissOnEscape';

type BaseOnboardingPersonalDetailsProps = {
/* Whether to use native styles tailored for native devices */
Expand Down
2 changes: 1 addition & 1 deletion src/pages/OnboardingPurpose/BaseOnboardingPurpose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import MenuItemList from '@components/MenuItemList';
import OfflineIndicator from '@components/OfflineIndicator';
import SafeAreaConsumer from '@components/SafeAreaConsumer';
import Text from '@components/Text';
import useDisableModalDismissOnEscape from '@hooks/useDisableModalDismissOnEscape';
import useLocalize from '@hooks/useLocalize';
import useOnboardingLayout from '@hooks/useOnboardingLayout';
import useTheme from '@hooks/useTheme';
Expand All @@ -24,7 +25,6 @@ import * as Welcome from '@userActions/Welcome';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import useDisableModalDismissOnEscape from '@hooks/useDisableModalDismissOnEscape';
import type {BaseOnboardingPurposeOnyxProps, BaseOnboardingPurposeProps} from './types';

type ValuesType<T> = T[keyof T];
Expand Down

0 comments on commit 5facddb

Please sign in to comment.