Minor fixes

This commit is contained in:
AshutoshBhadauriya
2023-06-10 13:54:46 +05:30
parent e54d8f42fb
commit b3ab0ad12e
4 changed files with 3 additions and 6 deletions
@@ -18,7 +18,6 @@ export default function MultipleChoiceMultiForm({
question,
questionIdx,
updateQuestion,
lastQuestion,
}: OpenQuestionFormProps): JSX.Element {
const lastChoiceRef = useRef<HTMLInputElement>(null);
const [isNew, setIsNew] = useState(true);
@@ -172,7 +171,7 @@ export default function MultipleChoiceMultiForm({
{question.choices.filter((c) => c.id === "other").length === 0 && (
<>
<Button size="sm" variant="minimal" type="button" onClick={() => addOther()}>
Add &quot;Other&quot; with specify
Add &quot;Other&quot;
</Button>
</>
)}
@@ -18,7 +18,6 @@ export default function MultipleChoiceSingleForm({
question,
questionIdx,
updateQuestion,
lastQuestion,
}: OpenQuestionFormProps): JSX.Element {
const lastChoiceRef = useRef<HTMLInputElement>(null);
const [isNew, setIsNew] = useState(true);
@@ -171,7 +170,7 @@ export default function MultipleChoiceSingleForm({
<div className="flex items-center space-x-2">
{question.choices.filter((c) => c.id === "other").length === 0 && (
<Button size="sm" variant="minimal" type="button" onClick={() => addOther()}>
Add &quot;Other&quot; with specify
Add &quot;Other&quot;
</Button>
)}
</div>
@@ -16,7 +16,6 @@ export default function OpenQuestionForm({
question,
questionIdx,
updateQuestion,
lastQuestion,
}: OpenQuestionFormProps): JSX.Element {
const [showSubheader, setShowSubheader] = useState(!!question.subheader);
@@ -22,7 +22,7 @@ export default function UpdateQuestionId({ localSurvey, question, questionIdx, u
return (
<div>
<Label className="block" htmlFor="questionId">
<Label htmlFor="questionId">
Question ID
</Label>
<div className="mt-2 inline-flex w-full">