basic create form but not done at all
This commit is contained in:
@@ -1,7 +1,52 @@
|
|||||||
|
import { Select, Tag } from "antd";
|
||||||
|
|
||||||
|
const options = [
|
||||||
|
{ value: "gold" },
|
||||||
|
{ value: "lime" },
|
||||||
|
{ value: "green" },
|
||||||
|
{ value: "cyan" },
|
||||||
|
];
|
||||||
|
|
||||||
export default function CreateConversation() {
|
export default function CreateConversation() {
|
||||||
return (
|
return (
|
||||||
<div className="mx-auto my-auto">
|
<div className="mx-auto my-auto w-96">
|
||||||
<input className="p-2 rounded border" />
|
<Select
|
||||||
|
placeholder={"Please select people to start the conversation with"}
|
||||||
|
mode="multiple"
|
||||||
|
showArrow
|
||||||
|
tagRender={tagRender}
|
||||||
|
defaultValue={["gold", "cyan"]}
|
||||||
|
style={{ width: "100%" }}
|
||||||
|
options={options}
|
||||||
|
size="large"
|
||||||
|
className=""
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* list of existing conversations with these people */}
|
||||||
|
<span className="flex flex-col">
|
||||||
|
<span className="flex flex-row items-center p-5">
|
||||||
|
<span>Engineering</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function tagRender(props) {
|
||||||
|
const { label, value, closable, onClose } = props;
|
||||||
|
const onPreventMouseDown = (event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
};
|
||||||
|
return (
|
||||||
|
<Tag
|
||||||
|
color={value}
|
||||||
|
onMouseDown={onPreventMouseDown}
|
||||||
|
closable={closable}
|
||||||
|
onClose={onClose}
|
||||||
|
style={{ marginRight: 3 }}
|
||||||
|
>
|
||||||
|
{label}
|
||||||
|
</Tag>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export default function Me() {
|
|||||||
* 4. profile edit? nah not needed...just keep current separate page
|
* 4. profile edit? nah not needed...just keep current separate page
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var fullCleanPageContent: ReactElement = <></>;
|
var fullCleanPageContent: ReactElement = undefined;
|
||||||
if (currRoute === Routes.createConvo) {
|
if (currRoute === Routes.createConvo) {
|
||||||
fullCleanPageContent = <CreateConversation />;
|
fullCleanPageContent = <CreateConversation />;
|
||||||
}
|
}
|
||||||
@@ -71,6 +71,7 @@ export default function Me() {
|
|||||||
<div className="flex flex-row">
|
<div className="flex flex-row">
|
||||||
<span className="flex flex-col items-center">
|
<span className="flex flex-col items-center">
|
||||||
<button
|
<button
|
||||||
|
onClick={() => router.push(Routes.convos)}
|
||||||
className="rounded-lg p-2 border flex flex-row items-center space-x-2
|
className="rounded-lg p-2 border flex flex-row items-center space-x-2
|
||||||
text-slate-400 text-xs hover:bg-slate-50"
|
text-slate-400 text-xs hover:bg-slate-50"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user