From ce57874113d12398cf23ad398591ca91da765492 Mon Sep 17 00:00:00 2001 From: talksik Date: Sat, 28 May 2022 17:23:34 -0500 Subject: [PATCH] clean up --- packages/desktop/src/components/Terminal.tsx | 341 ++++++++++--------- 1 file changed, 185 insertions(+), 156 deletions(-) diff --git a/packages/desktop/src/components/Terminal.tsx b/packages/desktop/src/components/Terminal.tsx index 0a7a549..efe8acb 100644 --- a/packages/desktop/src/components/Terminal.tsx +++ b/packages/desktop/src/components/Terminal.tsx @@ -307,162 +307,7 @@ export function TerminalProvider({ children }: { children?: React.ReactNode }) { - {/* selected conversation details */} - {selectedConversation && ( - - - - - - - {'Viet Phan'} - - - - - - - - - - - - - - yesterday - - - - - - - - {'Viet Phan'} - - - - - - - - - - - - today - - - - - - - - {'Viet Phan'} - - - - - - - - - - - - right now - - - - - - - - {'Arjun Patel'} - - - - - - - - - - - - - - - - - - - )} + {children} @@ -610,3 +455,187 @@ function ConversationRow({ conversation }: { conversation: Conversation }) { ); } + +function MainPanel() { + const { user } = useAuth(); + const { selectedConversation } = useTerminal(); + + // if selected conversation, show details + // do all fetching necessary to paint things here + // join the call so to speak + + // show who is + + return ( + + {selectedConversation ? ( + <> + + + + + + {'Viet Phan'} + + + + + + + + + + + + + + yesterday + + + + + + + + {'Viet Phan'} + + + + + + + + + + + + today + + + + + + + + {'Viet Phan'} + + + + + + + + + + + + right now + + + + + + + + {'Arjun Patel'} + + + + + + + + + + + + + + + + + + + ) : ( + + {`Hi ${ + user.displayName?.split(' ')[0] ?? 'there' + }!`} + Take a deep breath in. + + )} + + ); +}