set up for dialog for creating convo

This commit is contained in:
talksik
2022-05-30 06:01:55 -05:00
parent dd92f3f151
commit be8b560851
3 changed files with 43 additions and 21 deletions
+2 -20
View File
@@ -9,7 +9,7 @@ import { useRendersCount } from 'react-use';
export default function MainPanel() {
const { user } = useAuth();
const { selectedConversation, createConversationMode } = useTerminal();
const { selectedConversation } = useTerminal();
// if selected conversation, show details
// do all fetching necessary to paint things here
@@ -23,24 +23,6 @@ export default function MainPanel() {
const pageContent = useMemo(() => {
if (selectedConversation) return <ConversationDetails />;
if (createConversationMode)
return (
<Container
maxWidth={false}
sx={{
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
gap: 2,
flex: 1,
background: 'white',
}}
>
creating group conversation
</Container>
);
return (
<Container
maxWidth={false}
@@ -60,7 +42,7 @@ export default function MainPanel() {
</Typography>
</Container>
);
}, [createConversationMode, selectedConversation, user]);
}, [selectedConversation, user]);
return (
<Grid