Skip to content

Commit a9fc373

Browse files
committed
[DDW-596] fix lint errors
1 parent 392ea1e commit a9fc373

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

source/renderer/app/containers/wallet/dialogs/send-confirmation/DialogContentWithAssets.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { messages } from './messages';
1212
import { getFormattedAssetAmount } from './helpers';
1313
import styles from './DialogContentWithAssets.scss';
1414

15-
const Component = ({
15+
function Component({
1616
intl,
1717
amount,
1818
receiver,
@@ -21,7 +21,7 @@ const Component = ({
2121
selectedAssets,
2222
assetsAmounts,
2323
onCopyAssetParam,
24-
}: Props) => {
24+
}: Props) {
2525
const assetsSeparatorBasicHeight = 27;
2626
const assetsSeparatorCalculatedHeight = selectedAssets.length
2727
? assetsSeparatorBasicHeight * selectedAssets.length * 2 - 18
@@ -130,7 +130,7 @@ const Component = ({
130130
</div>
131131
</div>
132132
);
133-
};
133+
}
134134

135135
export const DialogContentWithAssets = compose(
136136
injectIntl,

source/renderer/app/containers/wallet/dialogs/send-confirmation/DialogContentWithoutAssets.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import { messages } from './messages';
77
import { DialogContentWithoutAssets as Props } from './types';
88
import styles from './DialogContentWithoutAssets.scss';
99

10-
const Component = ({
10+
function Component({
1111
intl,
1212
amount,
1313
receiver,
1414
transactionFee,
1515
formattedTotalAmount,
16-
}: Props) => {
16+
}: Props) {
1717
return (
1818
<div className={styles.root}>
1919
<div className={styles.addressToLabelWrapper}>
@@ -54,7 +54,7 @@ const Component = ({
5454
</div>
5555
</div>
5656
);
57-
};
57+
}
5858

5959
export const DialogContentWithoutAssets = compose(
6060
injectIntl,

source/renderer/app/containers/wallet/dialogs/send-confirmation/Error.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface Props {
99
onExternalLinkClick: (...args: Array<any>) => any;
1010
}
1111

12-
export const ConfirmationError = ({ error, onExternalLinkClick }: Props) => {
12+
export function ConfirmationError({ error, onExternalLinkClick }: Props) {
1313
if (!error) {
1414
return null;
1515
}
@@ -29,4 +29,4 @@ export const ConfirmationError = ({ error, onExternalLinkClick }: Props) => {
2929
)}
3030
</p>
3131
);
32-
};
32+
}

source/renderer/app/containers/wallet/dialogs/send-confirmation/PasswordInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { PasswordInputProps as Props } from './types';
77
import HardwareWalletStatus from '../../../../components/hardware-wallet/HardwareWalletStatus';
88
import styles from './styles.scss';
99

10-
const Component = ({
10+
function Component({
1111
isFlight,
1212
isTrezor,
1313
isHardwareWallet,
@@ -17,7 +17,7 @@ const Component = ({
1717
hwDeviceStatus,
1818
onExternalLinkClick,
1919
handleSubmitOnEnter,
20-
}: Props) => {
20+
}: Props) {
2121
if (doTermsNeedAcceptance({ isFlight, areTermsAccepted })) {
2222
return null;
2323
}
@@ -42,6 +42,6 @@ const Component = ({
4242
autoFocus
4343
/>
4444
);
45-
};
45+
}
4646

4747
export const PasswordInput = observer(Component);

source/renderer/app/containers/wallet/dialogs/send-confirmation/SendConfirmation.container.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { getNonZeroAssetTokens } from '../../../../utils/assets';
55
import { ContainerProps as Props, SubmitPayload } from './types';
66
import { WalletSendConfirmationDialogView } from './SendConfirmation.view';
77

8-
export const Containter = ({
8+
export function Containter({
99
actions,
1010
stores,
1111
amount,
@@ -18,7 +18,7 @@ export const Containter = ({
1818
hwDeviceStatus,
1919
isHardwareWallet,
2020
formattedTotalAmount,
21-
}: Props) => {
21+
}: Props) {
2222
const { isFlight } = global;
2323
const {
2424
assets: { getAsset },
@@ -113,7 +113,7 @@ export const Containter = ({
113113
onExternalLinkClick={onExternalLinkClick}
114114
/>
115115
);
116-
};
116+
}
117117

118118
export const WalletSendConfirmationDialogContainer = compose(
119119
inject('actions', 'stores'),

source/renderer/app/containers/wallet/dialogs/send-confirmation/SendConfirmation.view.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
} from './helpers';
2525
import styles from './styles.scss';
2626

27-
const View = ({
27+
function View({
2828
intl,
2929
amount,
3030
areTermsAccepted,
@@ -47,7 +47,7 @@ const View = ({
4747
onSubmitCb,
4848
onTermsCheckboxClick,
4949
onCopyAssetParam,
50-
}: Props) => {
50+
}: Props) {
5151
const {
5252
passphraseField,
5353
flightCandidateCheckboxField,
@@ -171,7 +171,7 @@ const View = ({
171171
/>
172172
</Dialog>
173173
);
174-
};
174+
}
175175

176176
export const WalletSendConfirmationDialogView = compose(
177177
injectIntl,

0 commit comments

Comments
 (0)