chore: ai modal disclamier added (#3970)

This commit is contained in:
Anmol Singh Bhatia 2024-03-14 19:16:07 +05:30 committed by GitHub
parent 43c75f4457
commit 0bc4b6cece
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,8 @@ import useToast from "hooks/use-toast";
import { usePopper } from "react-popper"; import { usePopper } from "react-popper";
// ui // ui
import { Button, Input } from "@plane/ui"; import { Button, Input } from "@plane/ui";
// icons
import { AlertCircle } from "lucide-react";
// components // components
import { RichReadOnlyEditorWithRef } from "@plane/rich-text-editor"; import { RichReadOnlyEditorWithRef } from "@plane/rich-text-editor";
import { Popover, Transition } from "@headlessui/react"; import { Popover, Transition } from "@headlessui/react";
@ -250,8 +252,17 @@ export const GptAssistantPopover: React.FC<Props> = (props) => {
/> />
)} )}
/> />
<div className={`flex gap-2 ${response === "" ? "justify-end" : "justify-between"}`}> <div className="flex gap-2 justify-between">
{responseActionButton} {responseActionButton ? (
<>{responseActionButton}</>
) : (
<>
<div className="flex items-center justify-center gap-2 text-sm text-custom-primary">
<AlertCircle className="h-4 w-4" />
<p>By using this feature, you consent to sharing the message with a 3rd party service. </p>
</div>
</>
)}
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<Button variant="neutral-primary" size="sm" onClick={onClose}> <Button variant="neutral-primary" size="sm" onClick={onClose}>
Close Close