Skip to content

Commit e1096d1

Browse files
committed
npm run prettier
1 parent 98fa068 commit e1096d1

4 files changed

Lines changed: 20 additions & 23 deletions

File tree

src/libs/actions/Domain.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
import Onyx from 'react-native-onyx';
2-
import type { OnyxUpdate } from 'react-native-onyx';
3-
import type { ValueOf } from 'type-fest';
2+
import type {OnyxUpdate} from 'react-native-onyx';
3+
import type {ValueOf} from 'type-fest';
44
import * as API from '@libs/API';
5-
import type { AddAdminToDomainParams, DeleteDomainParams, RemoveDomainAdminParams, SetTechnicalContactEmailParams, ToggleConsolidatedDomainBillingParams } from '@libs/API/parameters';
6-
import { READ_COMMANDS, SIDE_EFFECT_REQUEST_COMMANDS, WRITE_COMMANDS } from '@libs/API/types';
7-
import { getMicroSecondOnyxErrorWithTranslationKey } from '@libs/ErrorUtils';
5+
import type {AddAdminToDomainParams, DeleteDomainParams, RemoveDomainAdminParams, SetTechnicalContactEmailParams, ToggleConsolidatedDomainBillingParams} from '@libs/API/parameters';
6+
import {READ_COMMANDS, SIDE_EFFECT_REQUEST_COMMANDS, WRITE_COMMANDS} from '@libs/API/types';
7+
import {getMicroSecondOnyxErrorWithTranslationKey} from '@libs/ErrorUtils';
88
import CONST from '@src/CONST';
99
import ONYXKEYS from '@src/ONYXKEYS';
10-
import type { Domain } from '@src/types/onyx';
11-
import type { BaseVacationDelegate } from '@src/types/onyx/VacationDelegate';
12-
import { isEmptyObject } from '@src/types/utils/EmptyObject';
10+
import type {Domain} from '@src/types/onyx';
11+
import type {BaseVacationDelegate} from '@src/types/onyx/VacationDelegate';
12+
import {isEmptyObject} from '@src/types/utils/EmptyObject';
1313
import type PrefixedRecord from '@src/types/utils/PrefixedRecord';
14-
import type { ScimTokenWithState } from './ScimToken/ScimTokenUtils';
15-
import { ScimTokenState } from './ScimToken/ScimTokenUtils';
16-
14+
import type {ScimTokenWithState} from './ScimToken/ScimTokenUtils';
15+
import {ScimTokenState} from './ScimToken/ScimTokenUtils';
1716

1817
/**
1918
* Fetches a validation code that the user is supposed to put in the domain's DNS records to verify it
@@ -792,7 +791,7 @@ function setDomainVacationDelegate(
792791
creator: string, // who is performing the action
793792
delegate: string, // who will be set as the vacation delegate
794793
previousDelegate: string, // who was the previous vacation delegate
795-
shouldOverridePolicyDiffWarning= false, // whether to force setting the vacation delegate despite a warning that they are not in our workspace
794+
shouldOverridePolicyDiffWarning = false, // whether to force setting the vacation delegate despite a warning that they are not in our workspace
796795
) {
797796
const optimisticData: Array<OnyxUpdate<typeof ONYXKEYS.COLLECTION.DOMAIN | typeof ONYXKEYS.COLLECTION.DOMAIN_PENDING_ACTIONS | typeof ONYXKEYS.COLLECTION.DOMAIN_ERRORS>> = [
798797
{

src/pages/domain/Members/DomainMemberDetailsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function DomainMemberDetailsPage({route}: DomainMemberDetailsPageProps) {
3131
vacationDelegate={vacationDelegate}
3232
errors={getLatestError(domainErrors?.memberErrors?.[accountID]?.vacationDelegateErrors)}
3333
pendingAction={domainPendingActions?.member?.[accountID]?.vacationDelegate}
34-
onCloseError={() => clearVacationDelegateError(domainAccountID, accountID,vacationDelegate?.previousDelegate)}
34+
onCloseError={() => clearVacationDelegateError(domainAccountID, accountID, vacationDelegate?.previousDelegate)}
3535
onPress={() => Navigation.navigate(ROUTES.DOMAIN_VACATION_DELEGATE.getRoute(domainAccountID, accountID))}
3636
/>
3737
</BaseDomainMemberDetailsComponent>

src/pages/settings/Profile/CustomStatus/StatusPage.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
2-
import { InteractionManager, View } from 'react-native';
3-
import type { ValueOf } from 'type-fest';
1+
import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
2+
import {InteractionManager, View} from 'react-native';
3+
import type {ValueOf} from 'type-fest';
44
import EmojiPickerButtonDropdown from '@components/EmojiPicker/EmojiPickerButtonDropdown';
55
import FormProvider from '@components/Form/FormProvider';
66
import InputWrapper from '@components/Form/InputWrapper';
7-
import type { FormInputErrors, FormOnyxValues, FormRef } from '@components/Form/types';
7+
import type {FormInputErrors, FormOnyxValues, FormRef} from '@components/Form/types';
88
import HeaderWithBackButton from '@components/HeaderWithBackButton';
99
import MenuItem from '@components/MenuItem';
1010
import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription';
@@ -14,27 +14,26 @@ import TextInput from '@components/TextInput';
1414
import VacationDelegateMenuItem from '@components/VacationDelegateMenuItem';
1515
import useAutoFocusInput from '@hooks/useAutoFocusInput';
1616
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
17-
import { useMemoizedLazyExpensifyIcons } from '@hooks/useLazyAsset';
17+
import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset';
1818
import useLocalize from '@hooks/useLocalize';
1919
import useOnyx from '@hooks/useOnyx';
2020
import useResponsiveLayout from '@hooks/useResponsiveLayout';
2121
import useStyleUtils from '@hooks/useStyleUtils';
2222
import useTheme from '@hooks/useTheme';
2323
import useThemeStyles from '@hooks/useThemeStyles';
24-
import { isMobileChrome } from '@libs/Browser';
24+
import {isMobileChrome} from '@libs/Browser';
2525
import DateUtils from '@libs/DateUtils';
2626
import focusAfterModalClose from '@libs/focusAfterModalClose';
2727
import focusComposerWithDelay from '@libs/focusComposerWithDelay';
2828
import Navigation from '@libs/Navigation/Navigation';
29-
import { clearCustomStatus, clearDraftCustomStatus, updateCustomStatus, updateDraftCustomStatus } from '@userActions/User';
30-
import { clearVacationDelegateError } from '@userActions/VacationDelegate';
29+
import {clearCustomStatus, clearDraftCustomStatus, updateCustomStatus, updateDraftCustomStatus} from '@userActions/User';
30+
import {clearVacationDelegateError} from '@userActions/VacationDelegate';
3131
import CONST from '@src/CONST';
3232
import ONYXKEYS from '@src/ONYXKEYS';
3333
import ROUTES from '@src/ROUTES';
3434
import SCREENS from '@src/SCREENS';
3535
import INPUT_IDS from '@src/types/form/SettingsStatusSetForm';
3636

37-
3837
const initialEmoji = '💬';
3938

4039
function StatusPage() {

src/types/onyx/DomainErrors.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type * as OnyxCommon from './OnyxCommon';
22

3-
43
/**
54
* Basic errors for domain admins
65
*/

0 commit comments

Comments
 (0)