Page MenuHomePhabricator

D8866.id30069.diff
No OneTemporary

D8866.id30069.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, 2:10 PM (14 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2694806
Default Alt Text
D8866.id30069.diff (848 B)

Event Timeline