Skip to content

Commit

Permalink
'linting-errors'
Browse files Browse the repository at this point in the history
  • Loading branch information
manvendra-s-rathore committed Feb 5, 2024
1 parent 64da48f commit a3c2c15
Show file tree
Hide file tree
Showing 20 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions src/components/Accounts/Actions/ActionModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Accounts/Actions/CancellationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accounts/Actions/FeeFineActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accounts/Actions/FeeFineActions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions src/components/Accounts/Actions/WarningModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
injectIntl,
} from 'react-intl';

import { stripesConnect } from "@folio/stripes/core";
import { stripesConnect } from '@folio/stripes/core';
import {
Button,
Col,
Expand All @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accounts/ChargeFeeFine/ChargeForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accounts/ChargeFeeFine/FeeFineInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accounts/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Accounts/ViewFeesFines/ViewFeesFines.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Loans/ClosedLoans/ClosedLoans.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
refundClaimReturned,
} from '../../../constants';
import { isDcbUser } from '../../util';
import { useLocalizeCurrency } from "../../../hooks/useLocalizedCurrency/useLocalizeCurrency";
import { useLocalizeCurrency } from '../../../hooks/useLocalizedCurrency/useLocalizeCurrency';


/**
Expand Down
8 changes: 4 additions & 4 deletions src/hooks/useLocalizedCurrency/useLocalizeCurrency.js
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -9,4 +9,4 @@ export const useLocalizeCurrency = () => {
return {
localizeCurrency: (value) => localizeCurrencyAmount(value, stripes.currency, intl)
};
}
};
2 changes: 1 addition & 1 deletion src/settings/AddressTypesSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/settings/FeeFineSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: (
Expand Down
2 changes: 1 addition & 1 deletion src/views/AccountDetails/AccountDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/views/AccountsListing/AccountsListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down
2 changes: 1 addition & 1 deletion src/views/LoanDetails/LoanDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a3c2c15

Please sign in to comment.