Update ViewConvo.tsx
This commit is contained in:
@@ -88,12 +88,6 @@ const testDrawerItems: {
|
||||
|
||||
const AUDIO_CLIP_FETCH_LIMIT = 50;
|
||||
|
||||
enum ConvoModal {
|
||||
na = "na",
|
||||
editTldr = "editTldr",
|
||||
adminEdit = "adminEdit",
|
||||
}
|
||||
|
||||
export default function ViewConvo(props: { conversationId: string }) {
|
||||
const { currUser } = useAuth();
|
||||
|
||||
@@ -101,10 +95,6 @@ export default function ViewConvo(props: { conversationId: string }) {
|
||||
|
||||
const endOfTimeline = useRef<HTMLSpanElement>(null);
|
||||
|
||||
const [currentConvoModal, setCurrConvoModal] = useState<ConvoModal>(
|
||||
ConvoModal.na
|
||||
);
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
// auth if do not have this conversation in react cache, then we are not authorized
|
||||
@@ -192,19 +182,11 @@ export default function ViewConvo(props: { conversationId: string }) {
|
||||
}
|
||||
};
|
||||
|
||||
const handleCloseModal = () => {
|
||||
setCurrConvoModal(ConvoModal.na);
|
||||
};
|
||||
|
||||
// to allow not having commands while editing the input
|
||||
configure({
|
||||
ignoreTags: ["input", "select", "textarea"],
|
||||
});
|
||||
|
||||
const handleEditTldr = () => {
|
||||
console.log("updating tldr with modal");
|
||||
};
|
||||
|
||||
const [editTldrMode, setEditTldrMode] = useState<boolean>(false);
|
||||
const [newTldr, setNewTldr] = useState<string>("");
|
||||
const [isSubmitting, setIsSubmitting] = useState<boolean>(false);
|
||||
|
||||
Reference in New Issue
Block a user