mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-11 00:59:17 -06:00
issue toast after question id upate
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import { Button, Input, Label } from "@formbricks/ui";
|
||||
import { CheckIcon } from "@heroicons/react/24/solid";
|
||||
import { useState } from "react";
|
||||
import toast from "react-hot-toast";
|
||||
|
||||
export default function UpdateQuestionId({ localSurvey, question, questionIdx, updateQuestion }) {
|
||||
const [currentValue, setCurrentValue] = useState(question.id);
|
||||
@@ -16,6 +17,7 @@ export default function UpdateQuestionId({ localSurvey, question, questionIdx, u
|
||||
return;
|
||||
}
|
||||
updateQuestion(questionIdx, { id: currentValue });
|
||||
toast.success("Question ID updated.");
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user