Skip to content

Commit b60ccf5

Browse files
committed
frontend: fix tylistic/member-delimiter-style rules by make webfix
1 parent 50b91de commit b60ccf5

File tree

30 files changed

+53
-53
lines changed

30 files changed

+53
-53
lines changed

frontends/web/src/api/account.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export type TTransaction = {
259259
weight: number;
260260
};
261261

262-
export type TTransactions = { success: false } | { success: true; list: TTransaction[]; };
262+
export type TTransactions = { success: false } | { success: true; list: TTransaction[] };
263263

264264
type TNoteTx = {
265265
internalTxID: string;
@@ -294,7 +294,7 @@ export const exportAccount = (code: AccountCode): Promise<TExport | null> => {
294294
export const verifyXPub = (
295295
code: AccountCode,
296296
signingConfigIndex: number,
297-
): Promise<{ success: true; } | { success: false; errorMessage: string; }> => {
297+
): Promise<{ success: true } | { success: false; errorMessage: string }> => {
298298
return apiPost(`account/${code}/verify-extended-public-key`, { signingConfigIndex });
299299
};
300300

@@ -438,7 +438,7 @@ export const addAccount = (coinCode: string, name: string): Promise<TAddAccount>
438438
});
439439
};
440440

441-
export type TSignMessage = { success: false, aborted?: boolean; errorMessage?: string; } | { success: true; signature: string; };
441+
export type TSignMessage = { success: false; aborted?: boolean; errorMessage?: string } | { success: true; signature: string };
442442

443443
export type TSignWalletConnectTx = {
444444
success: false;

frontends/web/src/api/backend.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const getDevServers = (): Promise<boolean> => {
6767
return apiGet('dev-servers');
6868
};
6969

70-
type TQRCode = FailResponse | (SuccessResponse & { data: string; });
70+
type TQRCode = FailResponse | (SuccessResponse & { data: string });
7171

7272
export const getQRCode = (data: string) => {
7373
return (): Promise<TQRCode> => {
@@ -147,7 +147,7 @@ export const exportLogs = (): Promise<TSuccess> => {
147147
return apiPost('export-log');
148148
};
149149

150-
export const exportNotes = (): Promise<(FailResponse & { aborted: boolean; }) | SuccessResponse> => {
150+
export const exportNotes = (): Promise<(FailResponse & { aborted: boolean }) | SuccessResponse> => {
151151
return apiPost('notes/export');
152152
};
153153

@@ -156,7 +156,7 @@ type TImportNotes = {
156156
transactionCount: number;
157157
};
158158

159-
export const importNotes = (fileContents: ArrayBuffer): Promise<FailResponse | (SuccessResponse & { data: TImportNotes; })> => {
159+
export const importNotes = (fileContents: ArrayBuffer): Promise<FailResponse | (SuccessResponse & { data: TImportNotes })> => {
160160
const hexString = Array.from(new Uint8Array(fileContents))
161161
.map(byte => byte.toString(16).padStart(2, '0'))
162162
.join('');

frontends/web/src/api/backupBanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export type TShowBackupBannerResponse = {
2424
success: true;
2525
show: boolean;
2626
fiat: Fiat;
27-
threshold: string
27+
threshold: string;
2828
};
2929

3030
export const getShowBackupBanner = (rootFingerprint: string): Promise<TShowBackupBannerResponse> => {

frontends/web/src/api/banners.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { subscribeEndpoint, TUnsubscribe } from './subscribe';
2020

2121
export type TBannerInfo = {
2222
id: string;
23-
message: { [key: string]: string; };
23+
message: { [key: string]: string };
2424
link?: {
2525
href: string;
2626
text?: string;

frontends/web/src/api/bitbox02.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ type VersionInfoCommon = {
8585
};
8686

8787
export type VersionInfo = VersionInfoCommon & (
88-
{ canUpgrade: true, newVersion: string; } |
89-
{ canUpgrade: false; });
88+
{ canUpgrade: true; newVersion: string } |
89+
{ canUpgrade: false });
9090

9191
export const getVersion = (
9292
deviceID: string
@@ -110,7 +110,7 @@ export const verifyAttestation = (
110110
export const checkBackup = (
111111
deviceID: string,
112112
silent: boolean,
113-
): Promise<FailResponse | (SuccessResponse & { backupID: string; })> => {
113+
): Promise<FailResponse | (SuccessResponse & { backupID: string })> => {
114114
return apiPost(`devices/bitbox02/${deviceID}/backups/check`, { silent });
115115
};
116116

frontends/web/src/api/keystores.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ export const deregisterTest = (): Promise<null> => {
4040
return apiPost('test/deregister');
4141
};
4242

43-
export const connectKeystore = (rootFingerprint: string): Promise<{ success: boolean; }> => {
43+
export const connectKeystore = (rootFingerprint: string): Promise<{ success: boolean }> => {
4444
return apiPost('connect-keystore', { rootFingerprint });
4545
};

frontends/web/src/components/bluetooth/connection-issues-dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import { A } from '@/components/anchor/anchor';
2020
import styles from './connection-issues-dialog.module.css';
2121

2222
type Props = {
23-
dialogOpen: boolean
24-
onClose: () => void
23+
dialogOpen: boolean;
24+
onClose: () => void;
2525
};
2626
export const ConnectionIssuesDialog = ({ dialogOpen, onClose }: Props) => {
2727
const { t } = useTranslation();

frontends/web/src/components/contentwrapper/contentwrapper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import { ReactNode } from 'react';
1818
import style from './contentwrapper.module.css';
1919

2020
type TProps = {
21-
className?: string
22-
children: ReactNode
21+
className?: string;
22+
children: ReactNode;
2323
};
2424

2525
export const ContentWrapper = (({ className = '', children }: TProps) => {

frontends/web/src/components/groupedaccountselector/groupedaccountselector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const Group = (props: GroupProps<TOption>) => (
100100
);
101101

102102
type GroupHeadingProps = {
103-
customData: TGroupedOption
103+
customData: TGroupedOption;
104104
} & ReactSelectGroupHeadingProps<TOption>;
105105

106106
const GroupHeading = (

frontends/web/src/components/guide/guide.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import style from './guide.module.css';
2626

2727
export type TProps = {
2828
children?: ReactNode;
29-
title?: string
29+
title?: string;
3030
};
3131

3232
const Guide = ({ children, title = t('guide.title') }: TProps) => {

0 commit comments

Comments
 (0)