From 4dc46831d89b223b54ca3371f3d0acf1c5d37392 Mon Sep 17 00:00:00 2001 From: tienifr Date: Fri, 29 Mar 2024 15:42:05 +0700 Subject: [PATCH] fix remove export default --- src/libs/BankAccountUtils.ts | 3 ++- .../actions/ReimbursementAccount/resetFreePlanBankAccount.ts | 2 +- .../BusinessInfo/substeps/WebsiteBusiness.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libs/BankAccountUtils.ts b/src/libs/BankAccountUtils.ts index 0a8af51e9dda..a7fbc5f3bd4e 100644 --- a/src/libs/BankAccountUtils.ts +++ b/src/libs/BankAccountUtils.ts @@ -5,4 +5,5 @@ import type * as OnyxTypes from '@src/types/onyx'; function getDefaultCompanyWebsite(session: OnyxEntry, user: OnyxEntry): string { return user?.isFromPublicDomain ? 'https://' : `https://www.${Str.extractEmailDomain(session?.email ?? '')}`; } -export default getDefaultCompanyWebsite; +// eslint-disable-next-line import/prefer-default-export +export {getDefaultCompanyWebsite}; diff --git a/src/libs/actions/ReimbursementAccount/resetFreePlanBankAccount.ts b/src/libs/actions/ReimbursementAccount/resetFreePlanBankAccount.ts index 5a4a21df6bfb..4663fbb5bcc3 100644 --- a/src/libs/actions/ReimbursementAccount/resetFreePlanBankAccount.ts +++ b/src/libs/actions/ReimbursementAccount/resetFreePlanBankAccount.ts @@ -2,7 +2,7 @@ import type {OnyxEntry} from 'react-native-onyx'; import Onyx from 'react-native-onyx'; import * as API from '@libs/API'; import {WRITE_COMMANDS} from '@libs/API/types'; -import getDefaultCompanyWebsite from '@libs/BankAccountUtils'; +import {getDefaultCompanyWebsite} from '@libs/BankAccountUtils'; import * as PlaidDataProps from '@pages/ReimbursementAccount/plaidDataPropTypes'; import * as ReimbursementAccountProps from '@pages/ReimbursementAccount/reimbursementAccountPropTypes'; import CONST from '@src/CONST'; diff --git a/src/pages/ReimbursementAccount/BusinessInfo/substeps/WebsiteBusiness.tsx b/src/pages/ReimbursementAccount/BusinessInfo/substeps/WebsiteBusiness.tsx index 5a819ff1bd51..e06c4d9d575e 100644 --- a/src/pages/ReimbursementAccount/BusinessInfo/substeps/WebsiteBusiness.tsx +++ b/src/pages/ReimbursementAccount/BusinessInfo/substeps/WebsiteBusiness.tsx @@ -10,7 +10,7 @@ import useLocalize from '@hooks/useLocalize'; import useReimbursementAccountStepFormSubmit from '@hooks/useReimbursementAccountStepFormSubmit'; import type {SubStepProps} from '@hooks/useSubStep/types'; import useThemeStyles from '@hooks/useThemeStyles'; -import getDefaultCompanyWebsite from '@libs/BankAccountUtils'; +import {getDefaultCompanyWebsite} from '@libs/BankAccountUtils'; import * as ValidationUtils from '@libs/ValidationUtils'; import * as BankAccounts from '@userActions/BankAccounts'; import CONST from '@src/CONST';