fix: no need for cancel (#462)

This commit is contained in:
Michael Neale
2024-12-13 13:01:06 +11:00
committed by GitHub
parent a6f72b7f02
commit 8d2a888894
@@ -78,14 +78,6 @@ export default function GooseResponseForm({ message, metadata, append }: GooseRe
append(message);
};
const handleCancel = () => {
const message = {
content: "No - do not execute this plan",
role: "user",
};
append(message);
};
const handleSubmit = () => {
if (selectedOption !== null) {
const message = {
@@ -108,14 +100,6 @@ export default function GooseResponseForm({ message, metadata, append }: GooseRe
<GPSIcon size={14} />
Take flight with this plan
</Button>
<Button
onClick={handleCancel}
variant="destructive"
className="w-full sm:w-auto dark:bg-button-destructive-dark"
>
<GPSIcon size={14} />
Cancel
</Button>
</div>
)}
{isQuestion && isOptions && options.length > 0 && (