From a3c2c15703f1e183b9d802841333084400fac50d Mon Sep 17 00:00:00 2001 From: manvendra-s-rathore Date: Mon, 5 Feb 2024 18:16:26 +0530 Subject: [PATCH] 'linting-errors' --- src/components/Accounts/Actions/ActionModal.js | 4 ++-- src/components/Accounts/Actions/CancellationModal.js | 4 ++-- src/components/Accounts/Actions/FeeFineActions.js | 2 +- src/components/Accounts/Actions/FeeFineActions.test.js | 2 +- src/components/Accounts/Actions/WarningModal.js | 4 ++-- src/components/Accounts/ChargeFeeFine/ChargeForm.js | 2 +- src/components/Accounts/ChargeFeeFine/FeeFineInfo.js | 2 +- src/components/Accounts/Menu.js | 2 +- src/components/Accounts/ViewFeesFines/ViewFeesFines.js | 4 ++-- src/components/Loans/ClosedLoans/ClosedLoans.js | 2 +- .../UserDetailSections/UserAccounts/UserAccounts.js | 2 +- src/hooks/useLocalizedCurrency/useLocalizeCurrency.js | 8 ++++---- src/settings/AddressTypesSettings.js | 2 +- src/settings/FeeFineSettings.js | 2 +- src/views/AccountDetails/AccountDetails.js | 2 +- src/views/AccountsListing/AccountsListing.js | 2 +- src/views/LoanDetails/LoanDetails.js | 2 +- .../ActualCostDetailsModal/ActualCostDetailsModal.js | 2 +- .../components/ActualCostModal/ActualCostModal.js | 2 +- .../LostItemsList/components/RecordStatus/RecordStatus.js | 2 +- 20 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/components/Accounts/Actions/ActionModal.js b/src/components/Accounts/Actions/ActionModal.js index 56e7fa036..13601eaf4 100644 --- a/src/components/Accounts/Actions/ActionModal.js +++ b/src/components/Accounts/Actions/ActionModal.js @@ -5,7 +5,7 @@ import { FormattedMessage, injectIntl } from 'react-intl'; import { Field } from 'react-final-form'; import setFieldData from 'final-form-set-field-data'; -import { stripesConnect } from "@folio/stripes/core"; +import { stripesConnect } from '@folio/stripes/core'; import stripesFinalForm from '@folio/stripes/final-form'; import { Row, @@ -29,7 +29,7 @@ import { } from '../../../constants'; import css from './PayWaive.css'; -import { localizeCurrencyAmount } from "../../util/localizeCurrencyAmount"; +import { localizeCurrencyAmount } from '../../util/localizeCurrencyAmount'; class ActionModal extends React.Component { static propTypes = { diff --git a/src/components/Accounts/Actions/CancellationModal.js b/src/components/Accounts/Actions/CancellationModal.js index ab2094b5c..5917875d3 100644 --- a/src/components/Accounts/Actions/CancellationModal.js +++ b/src/components/Accounts/Actions/CancellationModal.js @@ -5,7 +5,7 @@ import { FormattedMessage, injectIntl } from 'react-intl'; import { Field } from 'react-final-form'; import setFieldData from 'final-form-set-field-data'; -import { stripesConnect } from "@folio/stripes/core"; +import { stripesConnect } from '@folio/stripes/core'; import stripesFinalForm from '@folio/stripes/final-form'; import { Modal, @@ -17,7 +17,7 @@ import { } from '@folio/stripes/components'; import css from './modal.css'; -import { localizeCurrencyAmount } from "../../util/localizeCurrencyAmount"; +import { localizeCurrencyAmount } from '../../util/localizeCurrencyAmount'; class CancellationModal extends React.Component { static propTypes = { diff --git a/src/components/Accounts/Actions/FeeFineActions.js b/src/components/Accounts/Actions/FeeFineActions.js index 5a456f53b..4b69fcc0c 100644 --- a/src/components/Accounts/Actions/FeeFineActions.js +++ b/src/components/Accounts/Actions/FeeFineActions.js @@ -28,7 +28,7 @@ import { calculateSelectedAmount, loadServicePoints, } from '../accountFunctions'; -import { localizeCurrencyAmount } from "../../util/localizeCurrencyAmount"; +import { localizeCurrencyAmount } from '../../util/localizeCurrencyAmount'; class Actions extends React.Component { static manifest = Object.freeze({ diff --git a/src/components/Accounts/Actions/FeeFineActions.test.js b/src/components/Accounts/Actions/FeeFineActions.test.js index cda89b819..f6c1be776 100644 --- a/src/components/Accounts/Actions/FeeFineActions.test.js +++ b/src/components/Accounts/Actions/FeeFineActions.test.js @@ -12,7 +12,7 @@ import '../../../../test/jest/__mock__'; import FeeFineActions from './FeeFineActions'; import CommentModal from './CommentModal'; -import {formatCurrencyAmount} from "../../util"; +import { formatCurrencyAmount } from '../../util'; jest.mock('./CancellationModal', () => jest.fn(() => null)); jest.mock('./CommentModal', () => jest.fn(() => null)); diff --git a/src/components/Accounts/Actions/WarningModal.js b/src/components/Accounts/Actions/WarningModal.js index 711a2bd2d..4146c2dc5 100644 --- a/src/components/Accounts/Actions/WarningModal.js +++ b/src/components/Accounts/Actions/WarningModal.js @@ -5,7 +5,7 @@ import { injectIntl, } from 'react-intl'; -import { stripesConnect } from "@folio/stripes/core"; +import { stripesConnect } from '@folio/stripes/core'; import { Button, Col, @@ -26,7 +26,7 @@ import { } from '../../util'; import css from './modal.css'; -import { localizeCurrencyAmount } from "../../util/localizeCurrencyAmount"; +import { localizeCurrencyAmount } from '../../util/localizeCurrencyAmount'; class WarningModal extends React.Component { static propTypes = { diff --git a/src/components/Accounts/ChargeFeeFine/ChargeForm.js b/src/components/Accounts/ChargeFeeFine/ChargeForm.js index c9be677bb..0887ee5e3 100644 --- a/src/components/Accounts/ChargeFeeFine/ChargeForm.js +++ b/src/components/Accounts/ChargeFeeFine/ChargeForm.js @@ -23,7 +23,7 @@ import UserInfo from './UserInfo'; import FeeFineInfo from './FeeFineInfo'; import ItemInfo from './ItemInfo'; import { SHARED_OWNER } from '../../../constants'; -import {formatCurrencyAmount} from "../../util"; +import { formatCurrencyAmount } from '../../util'; function showValidationErrors({ feeFineId, ownerId, amount }) { const errors = {}; diff --git a/src/components/Accounts/ChargeFeeFine/FeeFineInfo.js b/src/components/Accounts/ChargeFeeFine/FeeFineInfo.js index 2356ab80e..fc5f05afc 100644 --- a/src/components/Accounts/ChargeFeeFine/FeeFineInfo.js +++ b/src/components/Accounts/ChargeFeeFine/FeeFineInfo.js @@ -10,7 +10,7 @@ import { Select, } from '@folio/stripes/components'; -import { formatCurrencyAmount } from "../../util"; +import { formatCurrencyAmount } from '../../util'; class FeeFineInfo extends React.Component { static propTypes = { diff --git a/src/components/Accounts/Menu.js b/src/components/Accounts/Menu.js index 63b1dadba..f46fd3e5e 100644 --- a/src/components/Accounts/Menu.js +++ b/src/components/Accounts/Menu.js @@ -15,7 +15,7 @@ import { import { refundClaimReturned } from '../../constants'; import css from './Menu.css'; -import { useLocalizeCurrency } from "../../hooks/useLocalizedCurrency/useLocalizeCurrency"; +import { useLocalizeCurrency } from '../../hooks/useLocalizedCurrency/useLocalizeCurrency'; const Menu = (props) => { const { diff --git a/src/components/Accounts/ViewFeesFines/ViewFeesFines.js b/src/components/Accounts/ViewFeesFines/ViewFeesFines.js index 879cd4a7f..f870bb489 100644 --- a/src/components/Accounts/ViewFeesFines/ViewFeesFines.js +++ b/src/components/Accounts/ViewFeesFines/ViewFeesFines.js @@ -16,7 +16,7 @@ import { FormattedDate, FormattedTime, } from '@folio/stripes/components'; -import { stripesConnect } from "@folio/stripes/core"; +import { stripesConnect } from '@folio/stripes/core'; import { itemStatuses } from '../../../constants'; import { @@ -28,7 +28,7 @@ import { isCancelAllowed, } from '../accountFunctions'; import css from './ViewFeesFines.css'; -import { localizeCurrencyAmount } from "../../util/localizeCurrencyAmount"; +import { localizeCurrencyAmount } from '../../util/localizeCurrencyAmount'; class ViewFeesFines extends React.Component { static propTypes = { diff --git a/src/components/Loans/ClosedLoans/ClosedLoans.js b/src/components/Loans/ClosedLoans/ClosedLoans.js index d651c123a..87f87cac1 100644 --- a/src/components/Loans/ClosedLoans/ClosedLoans.js +++ b/src/components/Loans/ClosedLoans/ClosedLoans.js @@ -36,7 +36,7 @@ import Label from '../../Label'; import ErrorModal from '../../ErrorModal'; import css from './ClosedLoans.css'; -import { localizeCurrencyAmount } from "../../util/localizeCurrencyAmount"; +import { localizeCurrencyAmount } from '../../util/localizeCurrencyAmount'; class ClosedLoans extends React.Component { static propTypes = { diff --git a/src/components/UserDetailSections/UserAccounts/UserAccounts.js b/src/components/UserDetailSections/UserAccounts/UserAccounts.js index ed545be13..657cdcffb 100644 --- a/src/components/UserDetailSections/UserAccounts/UserAccounts.js +++ b/src/components/UserDetailSections/UserAccounts/UserAccounts.js @@ -22,7 +22,7 @@ import { refundClaimReturned, } from '../../../constants'; import { isDcbUser } from '../../util'; -import { useLocalizeCurrency } from "../../../hooks/useLocalizedCurrency/useLocalizeCurrency"; +import { useLocalizeCurrency } from '../../../hooks/useLocalizedCurrency/useLocalizeCurrency'; /** diff --git a/src/hooks/useLocalizedCurrency/useLocalizeCurrency.js b/src/hooks/useLocalizedCurrency/useLocalizeCurrency.js index 88e4bbb54..844342526 100644 --- a/src/hooks/useLocalizedCurrency/useLocalizeCurrency.js +++ b/src/hooks/useLocalizedCurrency/useLocalizeCurrency.js @@ -1,6 +1,6 @@ -import { useIntl } from "react-intl"; -import { useStripes } from "@folio/stripes/core"; -import { localizeCurrencyAmount } from "../../components/util/localizeCurrencyAmount"; +import { useIntl } from 'react-intl'; +import { useStripes } from '@folio/stripes/core'; +import { localizeCurrencyAmount } from '../../components/util/localizeCurrencyAmount'; export const useLocalizeCurrency = () => { const intl = useIntl(); @@ -9,4 +9,4 @@ export const useLocalizeCurrency = () => { return { localizeCurrency: (value) => localizeCurrencyAmount(value, stripes.currency, intl) }; -} +}; diff --git a/src/settings/AddressTypesSettings.js b/src/settings/AddressTypesSettings.js index 7e8d7e067..887d104cf 100644 --- a/src/settings/AddressTypesSettings.js +++ b/src/settings/AddressTypesSettings.js @@ -5,7 +5,7 @@ import { injectIntl, } from 'react-intl'; import { ControlledVocab } from '@folio/stripes/smart-components'; -import {stripesConnect } from '@folio/stripes/core'; +import { stripesConnect } from '@folio/stripes/core'; class AddressTypesSettings extends React.Component { static propTypes = { diff --git a/src/settings/FeeFineSettings.js b/src/settings/FeeFineSettings.js index b2a2022bf..fe3279f77 100644 --- a/src/settings/FeeFineSettings.js +++ b/src/settings/FeeFineSettings.js @@ -25,7 +25,7 @@ import { MAX_RECORDS, SHARED_OWNER, } from '../constants'; -import { localizeCurrencyAmount } from "../components/util/localizeCurrencyAmount"; +import { localizeCurrencyAmount } from '../components/util/localizeCurrencyAmount'; const columnMapping = { feeFineType: ( diff --git a/src/views/AccountDetails/AccountDetails.js b/src/views/AccountDetails/AccountDetails.js index 3635ef7c2..6dc0de015 100644 --- a/src/views/AccountDetails/AccountDetails.js +++ b/src/views/AccountDetails/AccountDetails.js @@ -45,7 +45,7 @@ import { } from '../../constants'; import css from './AccountDetails.css'; -import {localizeCurrencyAmount} from "../../components/util/localizeCurrencyAmount"; +import { localizeCurrencyAmount } from '../../components/util/localizeCurrencyAmount'; const columnWidths = { date: 100, diff --git a/src/views/AccountsListing/AccountsListing.js b/src/views/AccountsListing/AccountsListing.js index f3be50d88..8d66f330d 100644 --- a/src/views/AccountsListing/AccountsListing.js +++ b/src/views/AccountsListing/AccountsListing.js @@ -41,7 +41,7 @@ import { } from '../../components/Accounts'; import { refundClaimReturned } from '../../constants'; -import { localizeCurrencyAmount } from "../../components/util/localizeCurrencyAmount"; +import { localizeCurrencyAmount } from '../../components/util/localizeCurrencyAmount'; const filterConfig = [ { diff --git a/src/views/LoanDetails/LoanDetails.js b/src/views/LoanDetails/LoanDetails.js index be661dd61..20107bae3 100644 --- a/src/views/LoanDetails/LoanDetails.js +++ b/src/views/LoanDetails/LoanDetails.js @@ -57,7 +57,7 @@ import loanActionMap from '../../components/data/static/loanActionMap'; import LoanProxyDetails from './LoanProxyDetails'; import css from './LoanDetails.css'; -import { localizeCurrencyAmount } from "../../components/util/localizeCurrencyAmount"; +import { localizeCurrencyAmount } from '../../components/util/localizeCurrencyAmount'; function formatLoanAction(la, loanActionsWithUser) { diff --git a/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/ActualCostDetailsModal/ActualCostDetailsModal.js b/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/ActualCostDetailsModal/ActualCostDetailsModal.js index 52adfce34..4caa5411f 100644 --- a/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/ActualCostDetailsModal/ActualCostDetailsModal.js +++ b/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/ActualCostDetailsModal/ActualCostDetailsModal.js @@ -22,7 +22,7 @@ import { ACTUAL_COST_DETAILS_MODAL_DEFAULT, LOST_ITEM_STATUSES, } from '../../../../../constants'; -import { useLocalizeCurrency } from "../../../../../../../hooks/useLocalizedCurrency/useLocalizeCurrency"; +import { useLocalizeCurrency } from '../../../../../../../hooks/useLocalizedCurrency/useLocalizeCurrency'; const ActualCostDetailsModal = ({ diff --git a/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/ActualCostModal/ActualCostModal.js b/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/ActualCostModal/ActualCostModal.js index a15135f6e..c838d1946 100644 --- a/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/ActualCostModal/ActualCostModal.js +++ b/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/ActualCostModal/ActualCostModal.js @@ -29,7 +29,7 @@ import { ACTUAL_COST_DEFAULT, ACTUAL_COST_PROP_TYPES, } from '../../../../../constants'; -import { formatCurrencyAmount } from "../../../../../../../components/util"; +import { formatCurrencyAmount } from '../../../../../../../components/util'; const actualCostToBillField = 'actualCostToBill'; const BILLED_AMOUNT_MAX = 9999.99; diff --git a/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/RecordStatus/RecordStatus.js b/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/RecordStatus/RecordStatus.js index 6cb8aaeb0..89b456130 100644 --- a/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/RecordStatus/RecordStatus.js +++ b/src/views/LostItems/LostItemsListContainer/components/LostItemsList/components/RecordStatus/RecordStatus.js @@ -12,7 +12,7 @@ import { } from '../../../../../constants'; import { getRecordStatus } from '../../util'; import DateTimeFormatter from '../DateTimeFormatter'; -import { useLocalizeCurrency } from "../../../../../../../hooks/useLocalizedCurrency/useLocalizeCurrency"; +import { useLocalizeCurrency } from '../../../../../../../hooks/useLocalizedCurrency/useLocalizeCurrency'; export const getBilledAmount = (recordId, billedRecords) => billedRecords.find(record => record.id === recordId)?.billedAmount;