Update ViewConvo.tsx
This commit is contained in:
@@ -47,6 +47,7 @@ import { firestoreDb as db } from "../../services/firebaseService";
|
|||||||
import Collections from "@nirvana/common/services/collections";
|
import Collections from "@nirvana/common/services/collections";
|
||||||
import TimelineAudioClip from "../Conversations/TimelineAudioClip";
|
import TimelineAudioClip from "../Conversations/TimelineAudioClip";
|
||||||
import Modal from "antd/lib/modal/Modal";
|
import Modal from "antd/lib/modal/Modal";
|
||||||
|
import { configure } from "react-hotkeys";
|
||||||
|
|
||||||
const testDrawerItems: {
|
const testDrawerItems: {
|
||||||
linkType: LinkType;
|
linkType: LinkType;
|
||||||
@@ -185,6 +186,11 @@ export default function ViewConvo(props: { conversationId: string }) {
|
|||||||
setCurrConvoModal(ConvoModal.na);
|
setCurrConvoModal(ConvoModal.na);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// to allow not having commands while editing the input
|
||||||
|
configure({
|
||||||
|
ignoreTags: ["input", "select", "textarea"],
|
||||||
|
});
|
||||||
|
|
||||||
const handleEditTldr = () => {
|
const handleEditTldr = () => {
|
||||||
console.log("updating tldr with modal");
|
console.log("updating tldr with modal");
|
||||||
};
|
};
|
||||||
@@ -219,6 +225,10 @@ export default function ViewConvo(props: { conversationId: string }) {
|
|||||||
setIsSubmitting(false);
|
setIsSubmitting(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleAdminEdit = () => {
|
||||||
|
toast("Coming soon!");
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* <Modal
|
{/* <Modal
|
||||||
@@ -246,7 +256,10 @@ export default function ViewConvo(props: { conversationId: string }) {
|
|||||||
{convo?.name}
|
{convo?.name}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span className="p-2 rounded-full hover:cursor-pointer hover:bg-slate-200 group-hover:visible invisible">
|
<span
|
||||||
|
onClick={handleAdminEdit}
|
||||||
|
className="p-2 rounded-full hover:cursor-pointer hover:bg-slate-200 group-hover:visible invisible"
|
||||||
|
>
|
||||||
<FaEdit className="ml-auto text-md text-slate-400" />
|
<FaEdit className="ml-auto text-md text-slate-400" />
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user