showing up selection of convo on side
This commit is contained in:
@@ -3,6 +3,10 @@ body {
|
|||||||
Arial, sans-serif;
|
Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#root {
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { $searchQuery } from "../../controller/recoil";
|
|||||||
import Conversations from "./conversations";
|
import Conversations from "./conversations";
|
||||||
import Header from "./header";
|
import Header from "./header";
|
||||||
import Search from "./search";
|
import Search from "./search";
|
||||||
|
import SelectedConversation from "./selectedConversation";
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { useGetUserDetails } from "../../controller/";
|
import { useGetUserDetails } from "../../controller/";
|
||||||
import { useRecoilValue } from "recoil";
|
import { useRecoilValue } from "recoil";
|
||||||
@@ -13,11 +14,17 @@ export default function Home() {
|
|||||||
const searchQuery = useRecoilValue($searchQuery);
|
const searchQuery = useRecoilValue($searchQuery);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="h-screen w-full bg-slate-700">
|
<div className="h-screen bg-slate-700 flex flex-row">
|
||||||
{/* header */}
|
<div className="flex-1">
|
||||||
<Header />
|
{/* header */}
|
||||||
|
<Header />
|
||||||
|
|
||||||
{searchQuery ? <Search /> : <Conversations />}
|
{/* main content */}
|
||||||
|
|
||||||
|
{searchQuery ? <Search /> : <Conversations />}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<SelectedConversation />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,5 +15,7 @@ export default function SelectedConversation() {
|
|||||||
* all messages between me and them
|
* all messages between me and them
|
||||||
*/
|
*/
|
||||||
|
|
||||||
return <span>this is the selected conversation</span>;
|
return (
|
||||||
|
<div className="bg-slate-800 flex-1">this is the selected conversation</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user