Skip to content

Commit

Permalink
chore: linter happiness
Browse files Browse the repository at this point in the history
  • Loading branch information
ohager committed Mar 7, 2022
1 parent 4e2253e commit 9be85cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/app/templates/SignumSendForm/FeeInput.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
import React, {
ComponentType,
FC,
ForwardRefExoticComponent,
Fragment,
FunctionComponent,
MutableRefObject,
SVGProps,
useCallback,
useEffect,
useRef,
useState
} from 'react';
import React, { FC, Fragment, FunctionComponent, SVGProps, useCallback, useEffect, useState } from 'react';

import { FeeQuantPlanck } from '@signumjs/util';
import classNames from 'clsx';
Expand All @@ -24,7 +12,7 @@ import { ReactComponent as CupIcon } from 'app/icons/cup.svg';
import { ReactComponent as RocketIcon } from 'app/icons/rocket.svg';
import CustomSelect, { OptionRenderProps } from 'app/templates/CustomSelect';
import { toLocalFixed } from 'lib/i18n/numbers';
import { T, t } from 'lib/i18n/react';
import { T } from 'lib/i18n/react';
import { useSignum, useSignumAssetMetadata } from 'lib/temple/front';

export type AdditionalFeeInputProps = {
Expand Down
1 change: 1 addition & 0 deletions src/app/templates/SignumSendForm/SendForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export const SendForm: FC<FormProps> = ({ setOperation, onAddContactRequested })
const totalAmount = useMemo(() => {
if (!amountValue) return;
return Amount.fromSigna(amountValue).add(Amount.fromSigna(feeValue || MinimumFee));
/* eslint-disable react-hooks/exhaustive-deps */
}, [amountValue, feeValue, messageFormData.message]); // keep messageFromData.message

const validateAmount = useCallback(
Expand Down

0 comments on commit 9be85cf

Please sign in to comment.