Add npm build fixes for types

This commit is contained in:
BitterKanegul
2023-01-02 10:17:13 +05:30
parent d36f2e4ec5
commit 725dededbd
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -17,14 +17,13 @@ import {
useBoolean,
} from "@chakra-ui/react";
import { FlagIcon, QuestionMarkCircleIcon } from "@heroicons/react/20/solid";
import { useState } from "react";
import poster from "src/lib/poster";
import useSWRMutation from "swr/mutation";
import { useState } from "react";
export const FlaggableElement = (props) => {
const [isEditing, setIsEditing] = useBoolean();
const { trigger, isMutating } = useSWRMutation("/api/v1/text_labels", poster, {
const { trigger } = useSWRMutation("/api/v1/text_labels", poster, {
onSuccess: () => {
setIsEditing.off;
},
+1 -1
View File
@@ -61,7 +61,7 @@ const AssistantReply = () => {
<>
<h5 className="text-lg font-semibold">Reply as the assistant</h5>
<p className="text-lg py-1">Given the following conversation, provide an adequate reply</p>
<Messages messages={task.conversation.messages} />
<Messages messages={task.conversation.messages} post_id={task.id}/>
</>
<Textarea name="reply" placeholder="Reply..." ref={inputRef} />
</TwoColumns>