adding separate page for create a conversation

This commit is contained in:
Arjun Patel
2022-01-31 17:23:39 -08:00
parent f4eef9c3d0
commit 6a4b353024
7 changed files with 78 additions and 21 deletions
@@ -0,0 +1,7 @@
export default function CreateConversation() {
return (
<div className="mx-auto my-auto">
<input className="p-2 rounded border" />
</div>
);
}
+2 -2
View File
@@ -43,9 +43,9 @@ export default function Header() {
</Menu>
);
const inputRef = useRef<HTMLInputElement>();
const inputRef = useRef<HTMLInputElement | undefined>();
const selectSearch = () => {
inputRef.current.focus();
inputRef.current?.focus();
};
const keyMap: KeyMap = {
+4 -1
View File
@@ -30,7 +30,10 @@ function Sidebar() {
return (
<div className="flex flex-col justify-start items-baseline w-[20rem]">
{/* new button */}
<button className="rounded-full flex flex-row items-center px-5 py-2 ml-8 shadow-lg bg-white space-x-2">
<button
onClick={() => handleRoute(Routes.createConvo)}
className="rounded-full flex flex-row items-center px-5 py-2 ml-8 shadow-lg bg-white space-x-2"
>
<FaPlus className="text-teal-600 text-lg" />
<span className="text-slate-500 font-semibold">New</span>
</button>