Update CreateConversation.tsx

This commit is contained in:
Arjun Patel
2022-01-31 17:59:10 -08:00
parent 3c3ae94e85
commit fcd747961c
@@ -1,4 +1,5 @@
import { Select, Tag } from "antd"; import { Select, Tag } from "antd";
import { useEffect, useRef } from "react";
const options = [ const options = [
{ value: "gold" }, { value: "gold" },
@@ -8,18 +9,24 @@ const options = [
]; ];
export default function CreateConversation() { export default function CreateConversation() {
const input = useRef<HTMLInputElement>();
useEffect(() => {
input.current?.focus();
}, []);
return ( return (
<div className="mx-auto my-auto w-96"> <div className="mx-auto my-auto w-96">
<Select <Select
placeholder={"Please select people to start the conversation with"} placeholder={"Look up email addresses, names, etc."}
mode="multiple"
showArrow
tagRender={tagRender} tagRender={tagRender}
defaultValue={["gold", "cyan"]}
style={{ width: "100%" }} style={{ width: "100%" }}
options={options} options={options}
size="large" size="large"
className="" mode="multiple"
allowClear
// defaultValue={['a10', 'c12']}
ref={input}
/> />
{/* list of existing conversations with these people */} {/* list of existing conversations with these people */}