diff --git a/packages/web/components/Audio/AudioHandler.tsx b/packages/web/components/Audio/AudioHandler.tsx index 6c96ae2..d99107d 100644 --- a/packages/web/components/Audio/AudioHandler.tsx +++ b/packages/web/components/Audio/AudioHandler.tsx @@ -254,7 +254,7 @@ export default function AudioHandler() { }; const keyMap: KeyMap = { - SELECT_PRIORITY_CONVO: ["1", "2", "3", "4", "5", "6", "7", "8"], + SELECT_PRIORITY_CONVO: ["1", "2", "3", "4", "5", "6", "7", "8"], // todo dynamically map START_RECORDING: { name: "START RECORDING", sequence: "r", diff --git a/packages/web/recoil/MainRecoilDataHandler.tsx b/packages/web/recoil/MainRecoilDataHandler.tsx index 5026b1c..4f15868 100644 --- a/packages/web/recoil/MainRecoilDataHandler.tsx +++ b/packages/web/recoil/MainRecoilDataHandler.tsx @@ -1,7 +1,7 @@ import Conversation, { ConversationMember, } from "@nirvana/common/models/conversation"; -import { User } from "@nirvana/common/models/user"; +import User from "@nirvana/common/models/user"; import Collections from "@nirvana/common/services/collections"; import { collection, diff --git a/packages/web/recoil/main.tsx b/packages/web/recoil/main.tsx index 848b77d..e872a26 100644 --- a/packages/web/recoil/main.tsx +++ b/packages/web/recoil/main.tsx @@ -5,7 +5,7 @@ import Conversation, { Link, ConversationMemberState, } from "@nirvana/common/models/conversation"; -import { User as NirvanaUser } from "@nirvana/common/models/user"; +import * as NirvanaUser from "@nirvana/common/models/user"; import { conversationService, userService } from "@nirvana/common/services"; import { atom, DefaultValue, selector, selectorFamily } from "recoil"; @@ -53,7 +53,7 @@ export enum RecoilActions { AUDIO_QUEUE_CURRENT_ITEM_SELECTOR = "AUDIO_QUEUE_CURRENT_ITEM_SELECTOR", } -export const nirvanaUserDataAtom = atom({ +export const nirvanaUserDataAtom = atom({ key: RecoilActions.ALL_COMPLETE_CONVERSATIONS, default: null, }); @@ -399,9 +399,9 @@ export const checkIncomingMessageSelector = selectorFamily({ // map cache of all relevant users // get all of the users in all of the conversations, once through a simple service call -export const allRelevantContactsAtom = atom>({ +export const allRelevantContactsAtom = atom>({ key: RecoilActions.ALL_RELEVANT_CONTACTS, - default: new Map(), + default: new Map(), }); // todo: useful selector where a component can pass in a list of users