Skip to content

Commit a82ce40

Browse files
committed
format
1 parent bf1cd74 commit a82ce40

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

js/src/@types/shims.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import User from "flarum/common/models/User";
1+
import User from 'flarum/common/models/User';
22

33
declare module 'flarum/common/models/User' {
4-
export default interface User {
5-
mustEnable2FA: () => boolean;
6-
twoFactorEnabled: () => boolean;
7-
canDisable2FA: () => boolean;
8-
backupCodesRemaining: () => number;
9-
}
4+
export default interface User {
5+
mustEnable2FA: () => boolean;
6+
twoFactorEnabled: () => boolean;
7+
canDisable2FA: () => boolean;
8+
backupCodesRemaining: () => number;
9+
}
1010
}

js/src/forum/components/TwoFactorEnableModal.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@ import type Mithril from 'mithril';
99
export interface TwoFactorEnableModalAttrs extends IInternalModalAttrs {
1010
user: User;
1111
forced: boolean;
12-
onEnabled: () => void|null;
12+
onEnabled: () => void | null;
1313
}
1414

1515
export default class TwoFactorEnableModal extends Modal<TwoFactorEnableModalAttrs> {
1616
user!: User;
1717
// Statuses: 'loading', 'displayQR', 'displayBackupCodes', 'final'
1818
status: string = 'loading';
19-
qrCodeUrl: string|null = null;
19+
qrCodeUrl: string | null = null;
2020
backupCodes: Array<string> = [];
2121
token: Stream<string>;
22-
code: string|null = null;
22+
code: string | null = null;
2323
activeTab: string = 'qrcode';
2424
loading: boolean = false;
2525

2626
protected static isDismissibleViaCloseButton: boolean = true;
2727
protected static isDismissibleViaEscKey: boolean = true;
2828
protected static isDismissibleViaBackdropClick: boolean = true;
29-
29+
3030
oninit(vnode: Mithril.Vnode<TwoFactorEnableModalAttrs>) {
3131
super.oninit(vnode);
3232

3333
this.user = this.attrs.user;
34-
34+
3535
this.token = Stream('');
36-
36+
3737
if (this.attrs.forced) {
3838
TwoFactorEnableModal.isDismissibleViaCloseButton = false;
3939
TwoFactorEnableModal.isDismissibleViaEscKey = false;
@@ -211,7 +211,7 @@ export default class TwoFactorEnableModal extends Modal<TwoFactorEnableModalAttr
211211
}
212212

213213
finish() {
214-
this.attrs.onEnabled?.()
214+
this.attrs.onEnabled?.();
215215
this.hide();
216216
}
217217

0 commit comments

Comments
 (0)