Update CreateConversation.tsx
This commit is contained in:
@@ -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 */}
|
||||||
|
|||||||
Reference in New Issue
Block a user