Skip to content

Commit bfea8ff

Browse files
committed
[DDW-773] run prettier:format
1 parent 27441c0 commit bfea8ff

File tree

19 files changed

+30
-34
lines changed

19 files changed

+30
-34
lines changed

declaration.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ declare global {
3939
WALLET_COUNT: number;
4040
}
4141
}
42-
const daedalus: Daedalus;
42+
var daedalus: Daedalus;
4343
}
4444

4545
export {};

source/common/utils/files.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ export const generateFileNameWithTimestamp = (props: Props = {}) => {
3232
if (sanitize) fileName = sanitizeFilename(fileName);
3333
return fileName;
3434
};
35-
export const isFileNameWithTimestamp = (
36-
prefix = 'logs',
37-
extension = 'zip'
38-
) => (fileName: string) =>
35+
export const isFileNameWithTimestamp = (prefix = 'logs', extension = 'zip') => (
36+
fileName: string
37+
) =>
3938
fileName.match(
4039
RegExp(
4140
`(${prefix}-)([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{6}.0[0-9]{3}Z)(.${extension})`

source/main/cardano/CardanoWalletLauncher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export type WalletOptions = {
3939
};
4040
export async function CardanoWalletLauncher(
4141
walletOptions: WalletOptions
42-
// @ts-ignore ts-migrate(1064) FIXME: The return type of an async function or method mus... Remove this comment to see the full error message
42+
// @ts-ignore ts-migrate(1064) FIXME: The return type of an async function or method mus... Remove this comment to see the full error message
4343
): Launcher {
4444
const {
4545
nodeImplementation,

source/main/ipc/downloadManagerChannel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const getDownloadLocalData = async ({
211211

212212
const getDownloadsLocalData = async (): Promise<
213213
DownloadsLocalDataMainResponse
214-
// @ts-ignore ts-migrate(2322) FIXME: Type 'unknown' is not assignable to type 'Download... Remove this comment to see the full error message
214+
// @ts-ignore ts-migrate(2322) FIXME: Type 'unknown' is not assignable to type 'Download... Remove this comment to see the full error message
215215
> => localStorage.getAll();
216216

217217
const clearDownloadLocalData = async ({

source/renderer/app/components/news/UpdateItem.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import React, { Component } from 'react';
22
import { observer } from 'mobx-react';
33
import classNames from 'classnames';
44
import moment from 'moment';
5-
import News from /* , { NewsTypes } */
6-
'../../domains/News';
5+
import News /* , { NewsTypes } */ from '../../domains/News';
76
// @ts-ignore ts-migrate(2307) FIXME: Cannot find module './UpdateItem.scss' or its corr... Remove this comment to see the full error message
87
import styles from './UpdateItem.scss';
98

source/renderer/app/components/staking/delegation-center/helpers.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export const generateFieldPanel = (labels: any, values: any, index: number) => {
2828
index === 1
2929
? parseInt(values[index + 1].toString().length, 10) -
3030
parseInt(valueStr.length, 10)
31-
// @ts-ignore ts-migrate(2345) FIXME: Argument of type 'number' is not assignable to par... Remove this comment to see the full error message
32-
: parseInt(EPOCH_MAX_LENGTH, 10) - parseInt(valueStr.length, 10);
31+
: // @ts-ignore ts-migrate(2345) FIXME: Argument of type 'number' is not assignable to par... Remove this comment to see the full error message
32+
parseInt(EPOCH_MAX_LENGTH, 10) - parseInt(valueStr.length, 10);
3333

3434
switch (zerosToAdd) {
3535
case 1:

source/renderer/app/components/staking/stake-pools/StakePoolsList.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export const StakePoolsList = observer((props: StakePoolsListProps) => {
6060
// Note: do not use window here otherwise the pool description cannot be
6161
// scrolled anymore because it closes the pop over immediately.
6262
const scrollContainer = props.scrollElementRef
63-
// @ts-ignore ts-migrate(2339) FIXME: Property 'current' does not exist on type 'unknown... Remove this comment to see the full error message
64-
? props.scrollElementRef.current
63+
? // @ts-ignore ts-migrate(2339) FIXME: Property 'current' does not exist on type 'unknown... Remove this comment to see the full error message
64+
props.scrollElementRef.current
6565
: null;
6666

6767
if (scrollContainer !== null) {
@@ -127,8 +127,8 @@ export const StakePoolsList = observer((props: StakePoolsListProps) => {
127127
scrollElement={
128128
// @ts-ignore ts-migrate(2339) FIXME: Property 'current' does not exist on type 'unknown... Remove this comment to see the full error message
129129
props.scrollElementRef && props.scrollElementRef.current
130-
// @ts-ignore ts-migrate(2339) FIXME: Property 'current' does not exist on type 'unknown... Remove this comment to see the full error message
131-
? props.scrollElementRef.current
130+
? // @ts-ignore ts-migrate(2339) FIXME: Property 'current' does not exist on type 'unknown... Remove this comment to see the full error message
131+
props.scrollElementRef.current
132132
: window
133133
}
134134
>

source/renderer/app/components/wallet/WalletSendForm.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,7 @@ class WalletSendForm extends Component<Props, State> {
457457
});
458458
});
459459
};
460-
calculateTransactionFee = async (
461-
shouldUpdateMinimumAdaAmount = false
462-
) => {
460+
calculateTransactionFee = async (shouldUpdateMinimumAdaAmount = false) => {
463461
this.validateEmptyAssets();
464462
const { form } = this;
465463
// @ts-ignore ts-migrate(2339) FIXME: Property '$' does not exist on type 'ReactToolboxM... Remove this comment to see the full error message
@@ -853,7 +851,7 @@ class WalletSendForm extends Component<Props, State> {
853851
adaAmount: adaAmountField,
854852
receiver: receiverField,
855853
assetFields,
856-
// @ts-ignore ts-migrate(2339) FIXME: Property 'receiver' does not exist on type '{}'.
854+
// @ts-ignore ts-migrate(2339) FIXME: Property 'receiver' does not exist on type '{}'.
857855
} = formFields.receiver;
858856
const assetsSeparatorBasicHeight = 140;
859857
const assetsSeparatorCalculatedHeight = selectedAssetUniqueIds.length

source/renderer/app/config/currencyConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const CURRENCY_REQUEST_RATE_INTERVAL = 60 * 1000; // 1 minute | unit: mil
2929
// Generic function for all the Currency requests
3030
export const genericCurrencyRequest = (
3131
requestName: RequestName
32-
// @ts-ignore ts-migrate(1064) FIXME: The return type of an async function or method mus... Remove this comment to see the full error message
32+
// @ts-ignore ts-migrate(1064) FIXME: The return type of an async function or method mus... Remove this comment to see the full error message
3333
): ((...args: Array<any>) => any) => async (payload?: any): any => {
3434
const request = currencyConfig.requests[requestName];
3535
let response;

source/renderer/app/features/discreet-mode/feature.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ export class DiscreetMode extends Feature {
2929
@observable
3030
getDiscreetModeSettingsTooltipRequest: Request<
3131
Promise<boolean>
32-
// @ts-ignore ts-migrate(2729) FIXME: Property 'api' is used before its initialization.
32+
// @ts-ignore ts-migrate(2729) FIXME: Property 'api' is used before its initialization.
3333
> = new Request(this.api.getDiscreetModeSettingsTooltip);
3434
@observable
3535
setDiscreetModeSettingsTooltipRequest: Request<
3636
Promise<boolean>
37-
// @ts-ignore ts-migrate(2729) FIXME: Property 'api' is used before its initialization.
37+
// @ts-ignore ts-migrate(2729) FIXME: Property 'api' is used before its initialization.
3838
> = new Request(this.api.setDiscreetModeSettingsTooltip);
3939
@observable
4040
getDiscreetModeNotificationRequest: Request<Promise<boolean>> = new Request(

0 commit comments

Comments
 (0)