Page MenuHomePhabricator

D8866.id30071.diff
No OneTemporary

D8866.id30071.diff

diff --git a/web/types/nav-types.js b/web/types/nav-types.js
--- a/web/types/nav-types.js
+++ b/web/types/nav-types.js
@@ -14,8 +14,9 @@
import { tID, tShape } from 'lib/utils/validation-utils.js';
export type NavigationTab = 'calendar' | 'chat' | 'settings';
-export type LoginMethod = 'form' | 'qr-code';
const navigationTabValidator = t.enums.of(['calendar', 'chat', 'settings']);
+export type LoginMethod = 'form' | 'qr-code';
+const loginMethodValidator = t.enums.of(['form', 'qr-code']);
export type NavigationSettingsSection = 'account' | 'danger-zone';
const navigationSettingsSectionValidator = t.enums.of([
@@ -48,4 +49,5 @@
selectedUserList: t.maybe(t.list(accountUserInfoValidator)),
chatMode: t.maybe(navigationChatModeValidator),
inviteSecret: t.maybe(t.String),
+ loginMethod: t.maybe(loginMethodValidator),
});

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 1:43 PM (13 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2694806
Default Alt Text
D8866.id30071.diff (848 B)

Event Timeline