Skip to content

Commit

Permalink
allowed question_input to render TimezoneQuestionInput
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexthePear committed May 2, 2024
1 parent b3c1216 commit 8b19dc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/components/question_input/question_input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import TextareaQuestionInput from '$lib/components/questions/textarea/textarea_question_input.svelte';
import TimeQuestionInput from '$lib/components/questions/time/time_question_input.svelte';
import SelectQuestionInput from '$lib/components/questions/select/select_question_input.svelte';
import TimezoneQuestionInput from '../questions/timezone/timezone_question_input.svelte';
</script>

<div class="question">
Expand All @@ -36,6 +37,8 @@
<TimeQuestionInput {...$$props} />
{:else if $$props.type === QuestionType.SELECT}
<SelectQuestionInput {...$$props} />
{:else if $$props.type === QuestionType.TIMEZONE}
<TimezoneQuestionInput {...$$props} />
{/if}
</div>

Expand Down

0 comments on commit 8b19dc4

Please sign in to comment.