Skip to content

Commit

Permalink
remove unnessacery props
Browse files Browse the repository at this point in the history
  • Loading branch information
visrut-at-incubyte committed Sep 4, 2023
1 parent e47f98b commit edfbf65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/survey/[id]/components/AnswerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import NumberInput from '@/app/create-survey/components/NumberInput'
import TextInput from '@/app/create-survey/components/TextInput'
import YesOrNo from '@/app/create-survey/components/YesOrNo'

const AnswerForm = ({ question }: { question: Question }) => {
const AnswerForm = () => {
const { questions, answers, setAnswers, currentQuestionNumber, setCurrentQuestionNumber } = useAppContext()

const moveToNextQuestion = () => {
Expand Down
2 changes: 1 addition & 1 deletion app/survey/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function FillSurvey() {
<h1 className='text-2xl'>{name}</h1>
</nav>
<section className='flex flex-col justify-between items-center h-full'>
<AnswerForm question={questions[currentQuestionNumber]} />
<AnswerForm />
</section>
</main>
)
Expand Down

0 comments on commit edfbf65

Please sign in to comment.